mirror of
https://github.com/frappe/books.git
synced 2025-02-02 03:58:26 +00:00
feat: batchNumber in print template
This commit is contained in:
parent
56ebc57d76
commit
7d97e72b92
@ -29,6 +29,11 @@
|
|||||||
"label": "Display Tax Invoice",
|
"label": "Display Tax Invoice",
|
||||||
"fieldtype": "Check"
|
"fieldtype": "Check"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "displayBatchNumber",
|
||||||
|
"label": "Display Batch Number",
|
||||||
|
"fieldtype": "Check"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "phone",
|
"fieldname": "phone",
|
||||||
"label": "Phone",
|
"label": "Phone",
|
||||||
@ -138,6 +143,7 @@
|
|||||||
"logo",
|
"logo",
|
||||||
"displayLogo",
|
"displayLogo",
|
||||||
"displayTaxInvoice",
|
"displayTaxInvoice",
|
||||||
|
"displayBatchNumber",
|
||||||
"template",
|
"template",
|
||||||
"color",
|
"color",
|
||||||
"font",
|
"font",
|
||||||
|
@ -83,6 +83,7 @@ export default {
|
|||||||
showHSN: this.showHSN,
|
showHSN: this.showHSN,
|
||||||
displayLogo: this.printSettings.displayLogo,
|
displayLogo: this.printSettings.displayLogo,
|
||||||
displayTaxInvoice: this.printSettings.displayTaxInvoice,
|
displayTaxInvoice: this.printSettings.displayTaxInvoice,
|
||||||
|
displayBatchNumber: this.printSettings.displayBatchNumber,
|
||||||
discountAfterTax: this.doc.discountAfterTax,
|
discountAfterTax: this.doc.discountAfterTax,
|
||||||
logo: this.printSettings.logo,
|
logo: this.printSettings.logo,
|
||||||
companyName: this.fyo.singles.AccountingSettings.companyName,
|
companyName: this.fyo.singles.AccountingSettings.companyName,
|
||||||
|
@ -71,7 +71,13 @@
|
|||||||
<div class="py-4 text-end w-2/12" v-if="printObject.showHSN">
|
<div class="py-4 text-end w-2/12" v-if="printObject.showHSN">
|
||||||
HSN/SAC
|
HSN/SAC
|
||||||
</div>
|
</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">Rate</div>
|
||||||
<div class="py-4 text-end w-3/12">Amount</div>
|
<div class="py-4 text-end w-3/12">Amount</div>
|
||||||
</div>
|
</div>
|
||||||
@ -84,7 +90,13 @@
|
|||||||
<div class="w-2/12 text-end py-4" v-if="printObject.showHSN">
|
<div class="w-2/12 text-end py-4" v-if="printObject.showHSN">
|
||||||
{{ row.hsnCode }}
|
{{ row.hsnCode }}
|
||||||
</div>
|
</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.rate }}</div>
|
||||||
<div class="w-3/12 text-end py-4">{{ row.amount }}</div>
|
<div class="w-3/12 text-end py-4">{{ row.amount }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -68,6 +68,9 @@
|
|||||||
<div class="w-4/12">Item</div>
|
<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" v-if="printObject.showHSN">HSN/SAC</div>
|
||||||
<div class="w-2/12 text-end">Quantity</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">Rate</div>
|
||||||
<div class="w-3/12 text-end">Amount</div>
|
<div class="w-3/12 text-end">Amount</div>
|
||||||
</div>
|
</div>
|
||||||
@ -81,6 +84,9 @@
|
|||||||
{{ row.hsnCode }}
|
{{ row.hsnCode }}
|
||||||
</div>
|
</div>
|
||||||
<div class="w-2/12 text-end">{{ row.quantity }}</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.rate }}</div>
|
||||||
<div class="w-3/12 text-end">{{ row.amount }}</div>
|
<div class="w-3/12 text-end">{{ row.amount }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -112,6 +112,9 @@
|
|||||||
<div class="w-4/12">Item</div>
|
<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" v-if="printObject.showHSN">HSN/SAC</div>
|
||||||
<div class="w-2/12 text-end">Quantity</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">Rate</div>
|
||||||
<div class="w-3/12 text-end">Amount</div>
|
<div class="w-3/12 text-end">Amount</div>
|
||||||
</div>
|
</div>
|
||||||
@ -125,6 +128,9 @@
|
|||||||
{{ row.hsnCode }}
|
{{ row.hsnCode }}
|
||||||
</div>
|
</div>
|
||||||
<div class="w-2/12 text-end">{{ row.quantity }}</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.rate }}</div>
|
||||||
<div class="w-3/12 text-end">{{ row.amount }}</div>
|
<div class="w-3/12 text-end">{{ row.amount }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user