@davoodmehraban89 / Factor-easy / commits / 27fc926
Fork 0

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

fix(lifecycle): show temporary number until final posting

davoodmehraban89 committed Nov 18, 2026 at 09:04 UTC 27fc926663de241c904a16ee260c49d9ce1e48ad
1 file changed +1 -1
js/purchases.js
+1 -1
@@ -75,7 +75,7 @@
75 while(v.correctsPurchaseId&&!seen.has(v.id)){seen.add(v.id);const parent=rows.find(x=>x.id===v.correctsPurchaseId);if(!parent)break;v=parent;}
76 return v;
77 }
78 - function purchaseVisibleNumber(p){return purchaseLogicalRoot(p)?.number||p?.number||'';}
78 + function purchaseVisibleNumber(p){const v=purchaseLogicalRoot(p)||p;return v?.number||v?.temporaryNumber||'';}
79 function purchaseCurrentVisible(id){
80 const rows=myPurchases();let v=rows.find(x=>x.id===id),seen=new Set();
81 while(v&&!seen.has(v.id)){seen.add(v.id);const next=rows.filter(x=>x.correctsPurchaseId===v.id)