فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
A01: forward explicit cheque event date to financial posting
davoodmehraban89 committed
Oct 21, 2026 at 09:11 UTC
12e942c92abb28416f703b94998c14a06143a71c
1 file changed
+2
-2
src/controllers/ChequeController.js
+2
-2
@@ -85,10 +85,10 @@ class ChequeControllerImpl {
85
return await StorageService.put('cheques', await DataScope.stamp('cheques', updated));
86
}
87
88
- async changeStatus(id, status) {
88
+ async changeStatus(id, status, options = {}) {
89
const cheque = await StorageService.get('cheques', id);
90
if (!cheque || cheque.companyId !== await DataScope.companyId()) throw new Error('چک در شرکت فعال یافت نشد');
91
- if (cheque.financePosted) return RetailPostingService.changeChequeStatus(id,status);
91
+ if (cheque.financePosted) return RetailPostingService.changeChequeStatus(id,status,options);
92
cheque.status = status;
93
cheque.statusChangedAt = new Date().toISOString();
94
return await StorageService.put('cheques', await DataScope.stamp('cheques', cheque));