@davoodmehraban89 / Factor-easy / commits / b500ffb
Fork 0

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

fix(print): remove draft-status overlay from invoice print layout

davoodmehraban89 committed Oct 12, 2026 at 09:48 UTC b500ffbdb84d6f3e7c65d3c42e72586d1c6000dd
1 file changed +3 -3
js/print.js
+3 -3
@@ -565,7 +565,7 @@ function renderAndPrintDirect(invId){
565 const totalPages=pageGroups.length;
566 const containerHtml=pageGroups.map((g,idx)=>builder(g.items,seller,contact,inv,{pageNum:idx+1,totalPages,isFirstPage:g.isFirstPage,isLastPage:g.isLastPage,cumulativeBefore:g.cumulativeBefore,cumulativeSubtotal:g.cumulativeSubtotal,cumulativeDiscount:g.cumulativeDiscount,cumulativeVat:g.cumulativeVat,cumulativeNet:g.cumulativeNet})).join('');
567 const spec=getInvoicePrintSpec(inv);
568 - const unposted=typeof invoiceDocumentStatus==='function'&&invoiceDocumentStatus(inv)==='draft';
569 - const draftMark=unposted?'<div style="position:fixed;top:16mm;left:28%;font-size:19pt;font-weight:900;opacity:.24;transform:rotate(-12deg);z-index:1000;pointer-events:none">پیش‌نویس — غیرقطعی</div>':'';
570 - stageInvoicePrint(draftMark+containerHtml,spec);
568 + // Print the complete invoice layout without a draft-status watermark.
569 + // Document state and explicit accounting finalization remain unchanged.
570 + stageInvoicePrint(containerHtml,spec);
571 }