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 @@