From 7d97e72b92c93bfe62d6323d5bdc2a657413841c Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Wed, 22 Feb 2023 12:35:18 +0530 Subject: [PATCH] feat: batchNumber in print template --- schemas/app/PrintSettings.json | 6 ++++++ .../SalesInvoice/Templates/BaseTemplate.vue | 1 + src/components/SalesInvoice/Templates/Basic.vue | 16 ++++++++++++++-- .../SalesInvoice/Templates/Business.vue | 6 ++++++ .../SalesInvoice/Templates/Minimal.vue | 6 ++++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/schemas/app/PrintSettings.json b/schemas/app/PrintSettings.json index 1499093e..25fa62df 100644 --- a/schemas/app/PrintSettings.json +++ b/schemas/app/PrintSettings.json @@ -29,6 +29,11 @@ "label": "Display Tax Invoice", "fieldtype": "Check" }, + { + "fieldname": "displayBatchNumber", + "label": "Display Batch Number", + "fieldtype": "Check" + }, { "fieldname": "phone", "label": "Phone", @@ -138,6 +143,7 @@ "logo", "displayLogo", "displayTaxInvoice", + "displayBatchNumber", "template", "color", "font", diff --git a/src/components/SalesInvoice/Templates/BaseTemplate.vue b/src/components/SalesInvoice/Templates/BaseTemplate.vue index ac60ded5..0d77e16f 100644 --- a/src/components/SalesInvoice/Templates/BaseTemplate.vue +++ b/src/components/SalesInvoice/Templates/BaseTemplate.vue @@ -83,6 +83,7 @@ export default { showHSN: this.showHSN, displayLogo: this.printSettings.displayLogo, displayTaxInvoice: this.printSettings.displayTaxInvoice, + displayBatchNumber: this.printSettings.displayBatchNumber, discountAfterTax: this.doc.discountAfterTax, logo: this.printSettings.logo, companyName: this.fyo.singles.AccountingSettings.companyName, diff --git a/src/components/SalesInvoice/Templates/Basic.vue b/src/components/SalesInvoice/Templates/Basic.vue index e78940b2..d83520b3 100644 --- a/src/components/SalesInvoice/Templates/Basic.vue +++ b/src/components/SalesInvoice/Templates/Basic.vue @@ -71,7 +71,13 @@
HSN/SAC
-
Quantity
+
Quantity
+
+ Batch No +
Rate
Amount
@@ -84,7 +90,13 @@
{{ row.hsnCode }}
-
{{ row.quantity }}
+
{{ row.quantity }}
+
+ {{ row.batchNumber }} +
{{ row.rate }}
{{ row.amount }}
diff --git a/src/components/SalesInvoice/Templates/Business.vue b/src/components/SalesInvoice/Templates/Business.vue index 2a9be631..93162eee 100644 --- a/src/components/SalesInvoice/Templates/Business.vue +++ b/src/components/SalesInvoice/Templates/Business.vue @@ -68,6 +68,9 @@
Item
HSN/SAC
Quantity
+
+ Batch No +
Rate
Amount
@@ -81,6 +84,9 @@ {{ row.hsnCode }}
{{ row.quantity }}
+
+ {{ row.batchNumber }} +
{{ row.rate }}
{{ row.amount }}
diff --git a/src/components/SalesInvoice/Templates/Minimal.vue b/src/components/SalesInvoice/Templates/Minimal.vue index 1acf593a..30e38cc3 100644 --- a/src/components/SalesInvoice/Templates/Minimal.vue +++ b/src/components/SalesInvoice/Templates/Minimal.vue @@ -112,6 +112,9 @@
Item
HSN/SAC
Quantity
+
+ Batch No +
Rate
Amount
@@ -125,6 +128,9 @@ {{ row.hsnCode }}
{{ row.quantity }}
+
+ {{ row.batchNumber }} +
{{ row.rate }}
{{ row.amount }}