@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / f489e6b
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 17:00 UTC

fix(finance): exclude unposted sales drafts from inventory, receivables and revenue reporting

davoodmehraban89 committed Oct 11, 2026 at 20:59 UTC f489e6bad01530cdeb1a36ff8dce53c80f2d92e6
1 file changed +1 -1
js/idle-and-reports.js
+1 -1
@@ -194,7 +194,7 @@ function populateReportYearSelect(years){
194 }
195 function renderFinancialReports(){
196 const cur=(typeof getCurrencyLabel==='function')?getCurrencyLabel():'ریال';
197 - const invoices=(typeof getMyInvoices==='function')?getMyInvoices():[];
197 + const invoices=(typeof getMyInvoices==='function'&&typeof invoiceDocumentStatus==='function')?getMyInvoices().filter(i=>invoiceDocumentStatus(i)==='posted'):[];
198 const parsed=invoices.map(inv=>{
199 const d=toEnglishDigits(inv.date||'');
200 const parts=d.split('/');