فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
A01: carry explicit reason and confirmation through treasury controller
davoodmehraban89 committed
Oct 21, 2026 at 08:43 UTC
b3124fe45116d1d30a49cb5c6c2afd652f7fb3e6
1 file changed
+3
-1
src/controllers/TreasuryController.js
+3
-1
@@ -223,7 +223,9 @@ class TreasuryControllerImpl {
223
refInvoiceNumber: data.refInvoiceNumber || null,
224
method: data.method || 'cash', // cash | card | cheque | transfer
225
description: (data.description || '').trim(),
226
- chequeNumber: data.chequeNumber || ''
226
+ chequeNumber: data.chequeNumber || '',
227
+ ...(data.reasonCode ? { reasonCode: data.reasonCode } : {}),
228
+ ...(data.explicitlyApproved === true ? { explicitlyApproved: true } : {})
229
};
230
if (await RetailPostingService.isEnabled()) {
231
return RetailPostingService.postTransaction(await DataScope.stamp('treasury',tx));