2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00

feat: batchNumber in print template

This commit is contained in:
akshayitzme 2023-02-22 12:35:18 +05:30
parent 56ebc57d76
commit 7d97e72b92
5 changed files with 33 additions and 2 deletions

View File

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

View File

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

View File

@ -71,7 +71,13 @@
<div class="py-4 text-end w-2/12" v-if="printObject.showHSN">
HSN/SAC
</div>
<div class="py-4 text-end w-1/12">Quantity</div>
<div class="py-4 text-end w-2/12">Quantity</div>
<div
class="w-3/12 text-end py-4"
v-if="printObject.displayBatchNumber"
>
Batch No
</div>
<div class="py-4 text-end w-3/12">Rate</div>
<div class="py-4 text-end w-3/12">Amount</div>
</div>
@ -84,7 +90,13 @@
<div class="w-2/12 text-end py-4" v-if="printObject.showHSN">
{{ row.hsnCode }}
</div>
<div class="w-1/12 text-end py-4">{{ row.quantity }}</div>
<div class="w-2/12 text-end py-4">{{ row.quantity }}</div>
<div
class="w-3/12 text-end py-4"
v-if="printObject.displayBatchNumber"
>
{{ row.batchNumber }}
</div>
<div class="w-3/12 text-end py-4">{{ row.rate }}</div>
<div class="w-3/12 text-end py-4">{{ row.amount }}</div>
</div>

View File

@ -68,6 +68,9 @@
<div class="w-4/12">Item</div>
<div class="w-2/12 text-end" v-if="printObject.showHSN">HSN/SAC</div>
<div class="w-2/12 text-end">Quantity</div>
<div class="w-3/12 text-end" v-if="printObject.displayBatchNumber">
Batch No
</div>
<div class="w-3/12 text-end">Rate</div>
<div class="w-3/12 text-end">Amount</div>
</div>
@ -81,6 +84,9 @@
{{ row.hsnCode }}
</div>
<div class="w-2/12 text-end">{{ row.quantity }}</div>
<div class="w-3/12 text-end" v-if="printObject.displayBatchNumber">
{{ row.batchNumber }}
</div>
<div class="w-3/12 text-end">{{ row.rate }}</div>
<div class="w-3/12 text-end">{{ row.amount }}</div>
</div>

View File

@ -112,6 +112,9 @@
<div class="w-4/12">Item</div>
<div class="w-2/12 text-end" v-if="printObject.showHSN">HSN/SAC</div>
<div class="w-2/12 text-end">Quantity</div>
<div class="w-3/12 text-end" v-if="printObject.displayBatchNumber">
Batch No
</div>
<div class="w-3/12 text-end">Rate</div>
<div class="w-3/12 text-end">Amount</div>
</div>
@ -125,6 +128,9 @@
{{ row.hsnCode }}
</div>
<div class="w-2/12 text-end">{{ row.quantity }}</div>
<div class="w-3/12 text-end" v-if="printObject.displayBatchNumber">
{{ row.batchNumber }}
</div>
<div class="w-3/12 text-end">{{ row.rate }}</div>
<div class="w-3/12 text-end">{{ row.amount }}</div>
</div>