From 25236560df3d77b819999226d3b4927f4d6380b7 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Mon, 3 Oct 2022 13:48:31 +0530 Subject: [PATCH] incr: update print templates to display correct currency --- .../SalesInvoice/Templates/BaseTemplate.vue | 88 ++++++++++++++++-- .../SalesInvoice/Templates/Basic.vue | 91 +++++++++--------- .../SalesInvoice/Templates/Business.vue | 92 +++++++++--------- .../SalesInvoice/Templates/Minimal.vue | 93 +++++++++---------- src/pages/InvoiceForm.vue | 12 ++- 5 files changed, 223 insertions(+), 153 deletions(-) diff --git a/src/components/SalesInvoice/Templates/BaseTemplate.vue b/src/components/SalesInvoice/Templates/BaseTemplate.vue index 4c32040a..c8bdaf5d 100644 --- a/src/components/SalesInvoice/Templates/BaseTemplate.vue +++ b/src/components/SalesInvoice/Templates/BaseTemplate.vue @@ -1,15 +1,8 @@ diff --git a/src/components/SalesInvoice/Templates/Basic.vue b/src/components/SalesInvoice/Templates/Basic.vue index 0d022a86..6ead0b28 100644 --- a/src/components/SalesInvoice/Templates/Basic.vue +++ b/src/components/SalesInvoice/Templates/Basic.vue @@ -1,36 +1,31 @@ diff --git a/src/components/SalesInvoice/Templates/Business.vue b/src/components/SalesInvoice/Templates/Business.vue index 69e3e5f7..e4c48b49 100644 --- a/src/components/SalesInvoice/Templates/Business.vue +++ b/src/components/SalesInvoice/Templates/Business.vue @@ -1,65 +1,58 @@ - diff --git a/src/components/SalesInvoice/Templates/Minimal.vue b/src/components/SalesInvoice/Templates/Minimal.vue index 158767b5..cd54f0c1 100644 --- a/src/components/SalesInvoice/Templates/Minimal.vue +++ b/src/components/SalesInvoice/Templates/Minimal.vue @@ -1,65 +1,60 @@ - diff --git a/src/pages/InvoiceForm.vue b/src/pages/InvoiceForm.vue index 732ab3f3..1c9e13e5 100644 --- a/src/pages/InvoiceForm.vue +++ b/src/pages/InvoiceForm.vue @@ -185,10 +185,14 @@
{{ tax.account }}
{{ - fyo.format(tax.amount, { - fieldtype: 'Currency', - currency: doc.currency, - }) + fyo.format( + tax.amount, + { + fieldtype: 'Currency', + fieldname: 'amount', + }, + tax + ) }}