@davoodmehraban89 / Factor-easy / commits / a9a32a8
Fork 0

سامانه صدور فاکتور و حسابداری

feat(stage3.2): recognize uniquely matched server-posted sale without altering source

davoodmehraban89 committed Oct 23, 2026 at 03:21 UTC a9a32a809533b9af93b42a9291f3db7f16d9922f
1 file changed +1 -1
js/invoices.js
+1 -1
@@ -364,7 +364,7 @@ async function commitInvoiceSeamlessAmendment(id,changes){
364
365 function invoiceDocumentStatus(inv){
366 if(!inv)return 'unknown';
367 - const linked=inv.journalVoucherId&&typeof jeSourceVoucher==='function'?jeSourceVoucher(inv):null;
367 + const linked=typeof jeSourceVoucher==='function'?jeSourceVoucher(inv):null;
368 if(linked?.status==='reversed'||inv.accountingStatus==='reversed'||inv.documentStatus==='reversed')return 'reversed';
369 if(linked?.status==='posted'||inv.journalVoucherId||inv.accountingStatus==='posted'||inv.documentStatus==='posted')return 'posted';
370 if(inv.documentStatus==='draft'||inv.accountingStatus==='draft')return 'draft';