diff --git a/src/utils/printTemplates.ts b/src/utils/printTemplates.ts index 120550e4..c6bf210b 100644 --- a/src/utils/printTemplates.ts +++ b/src/utils/printTemplates.ts @@ -53,6 +53,11 @@ export async function getPrintTemplatePropValues( ModelNameEnum.Currency ); + (values.doc as PrintTemplateData).paidAmount = doc.fyo.format( + paymentDoc.amount as Money, + ModelNameEnum.Currency + ); + const printSettings = await fyo.doc.getDoc(ModelNameEnum.PrintSettings); const printValues = await getPrintTemplateDocValues( printSettings, diff --git a/templates/POS.template.html b/templates/POS.template.html index 82ec1fd6..5775fbda 100644 --- a/templates/POS.template.html +++ b/templates/POS.template.html @@ -43,29 +43,29 @@
{{ t`SI` }}
-
{{ t`Item` }}
+
{{ t`Item` }}
{{ t`HSN/SAC` }}
-
{{ t`Qty` }}
+
{{ t`Qty` }}
{{ t`Price` }}
-
{{ t`Amount` }}
+
{{ t`Amount` }}
-
{{ index + 1 }}
-
{{ row.item }}
+
{{ index + 1 }}
+
{{ row.item }}
{{ row.hsnCode }}
-
{{ row.quantity }}
-
{{ row.rate }}
-
{{ row.amount }}
+
{{ row.quantity }}
+
{{ row.rate }}
+
{{ row.amount }}
@@ -125,7 +125,7 @@ {{ doc.totalDiscount ? doc.totalDiscount : '00.00'}}
{{ doc.paymentMethod }}
-
{{ doc.grandTotal }}
+
{{ doc.paidAmount }}
{{ doc.grandTotal }}
{{ doc.outstandingAmount }} @@ -133,7 +133,7 @@
-
+

No Cash Refund Exchange Only..Keep bill for Exchange