سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 04:15 UTC
merge(finance): carry reviewed document draft workflow onto current main
davoodmehraban89 committed
Oct 11, 2026 at 21:08 UTC
b4f679e7e195abb95e9d41294b8c33edbf17557e
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('/');