سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 15:45 UTC
fix(lifecycle): expose migrated treasury records as drafts
davoodmehraban89 committed
Nov 18, 2026 at 09:10 UTC
c24d49d646a7c52ae969ee0ddc9e77e91ef3ff41
1 file changed
+2
-1
js/payments.js
+2
-1
@@ -31,7 +31,8 @@ function paymentPostingStatus(p){
31
const v=typeof jeSourceVoucher==='function'?jeSourceVoucher(p):null;
32
if(v?.status==='posted')return 'posted';
33
if(v?.status==='reversed')return 'reversed';
34
- return 'legacy_review'; // Unlinked historical records need manual reconciliation.
34
+ if(v?.status==='draft'||p.accountingStatus==='draft'||p.documentStatus==='draft')return 'draft';
35
+ return 'legacy_review'; // Unlinked historical records still require manual reconciliation.
36
}
37
function paymentCurrentVisible(id){
38
const rows=getMyPayments();let p=rows.find(x=>x.id===id),seen=new Set();