diff --git a/src/components/SalesInvoice/Templates/BaseTemplate.vue b/src/components/SalesInvoice/Templates/BaseTemplate.vue index cc40b0ac..baa7ae4f 100644 --- a/src/components/SalesInvoice/Templates/BaseTemplate.vue +++ b/src/components/SalesInvoice/Templates/BaseTemplate.vue @@ -22,6 +22,9 @@ export default { isSalesInvoice() { return this.doc.schemaName === 'SalesInvoice'; }, + showHSN() { + return this.doc.items.map((i) => i.hsnCode).every(Boolean); + }, }, }; diff --git a/src/components/SalesInvoice/Templates/Basic.vue b/src/components/SalesInvoice/Templates/Basic.vue index 98de53d6..d5a27a1f 100644 --- a/src/components/SalesInvoice/Templates/Basic.vue +++ b/src/components/SalesInvoice/Templates/Basic.vue @@ -67,6 +67,7 @@
Item
+
HSN/SAC
Quantity
Rate
Amount
@@ -77,6 +78,9 @@ :key="row.name" >
{{ row.item }}
+
+ {{ row.hsnCode }} +
{{ format(row, 'quantity') }}
diff --git a/src/components/SalesInvoice/Templates/Business.vue b/src/components/SalesInvoice/Templates/Business.vue index 74eea3b1..bec15984 100644 --- a/src/components/SalesInvoice/Templates/Business.vue +++ b/src/components/SalesInvoice/Templates/Business.vue @@ -67,6 +67,7 @@
Item
+
HSN/SAC
Quantity
Rate
Amount
@@ -77,6 +78,7 @@ :key="row.name" >
{{ row.item }}
+
{{ row.hsnCode }}
{{ format(row, 'quantity') }}
{{ format(row, 'rate') }}
{{ format(row, 'amount') }}
diff --git a/src/components/SalesInvoice/Templates/Minimal.vue b/src/components/SalesInvoice/Templates/Minimal.vue index 8d22bcd6..e3b58d29 100644 --- a/src/components/SalesInvoice/Templates/Minimal.vue +++ b/src/components/SalesInvoice/Templates/Minimal.vue @@ -99,12 +99,14 @@ " >
Item
+
HSN/SAC
Quantity
Rate
Amount
{{ row.item }}
+
{{ row.hsnCode }}
{{ format(row, 'quantity') }}
{{ format(row, 'rate') }}
{{ format(row, 'amount') }}