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

Gate complete navigation and project direction UX

davoodmehraban89 committed Sep 28, 2026 at 15:51 UTC 26a42d9c0e71015dc05e1fb93c1844d33aa35531
1 file changed +2 -1
scripts/quality-check.mjs
+2 -1
@@ -13,6 +13,7 @@ for(const id of requiredIds)if(!ids.includes(id))throw new Error('Missing requir
13 const requiredScripts=['js/core.js','js/sync.js','js/invoices.js','js/print.js','js/contacts.js','js/companies.js','js/projects.js','js/purchases.js','js/operations.js','js/payments.js','js/accounting.js','js/drilldown.js','js/selfcheck.js'];
14 if(index.includes('</script>\\n<script'))throw new Error('Literal \\n found between script tags');
15 for(const s of requiredScripts)if(!index.includes(s))throw new Error('Missing script load: '+s);
16 +for(const v of ['view-purchases','view-payments'])if(!index.includes(`data-view="${v}"`))throw new Error('Missing primary navigation: '+v);
17 if(!index.includes("frame-ancestors 'none'")||!index.includes('upgrade-insecure-requests'))throw new Error('Production CSP hardening missing');
18 if(!index.includes('name="referrer" content="strict-origin-when-cross-origin"'))throw new Error('Referrer policy metadata missing');
19 if(!index.includes('فینورا — نسخه ۸.۱')||!index.includes('نسخه ۸.۱'))throw new Error('Visible application version is inconsistent');
@@ -27,7 +28,7 @@ const must={
28 'invoices.js':['function commitSaveInvoice','function editInvoice','paymentMethod'],
29 'print.js':['function renderAndPrintDirect','FORMAL_ROWS_PER_PAGE=12','size: A4 portrait','size: A5 landscape'],
30 'purchases.js':['window.purSave=function','window.purEdit=function','window.purPrint=function','window.purRefreshProjects=function','pur-payment-method','companyId'],
30 - 'projects.js':['editContactProject','deleteContactProject','addSubproject','editSubproject','deleteSubproject','usedExpense','usedPayment','projectDirectionLabel(s.direction||p.direction)'],
31 + 'projects.js':['editContactProject','deleteContactProject','addSubproject','editSubproject','deleteSubproject','usedExpense','usedPayment','projectDirectionLabel(s.direction||p.direction)','project-direction-select','return new Promise'],
32 'companies.js':['usedSales','usedPurchases','usedExpenses','usedPayments','usedCheques'],
33 'operations.js':['editContact','editProduct','editCheque','editExpense','deleteInvoice','refreshExpenseProjects','projectId','getMyPayments','companyId'],
34 'selfcheck.js':['datastore.payments','invoices.has','purchases.has'],