mirror of
https://github.com/frappe/books.git
synced 2024-12-22 02:49:03 +00:00
feat: add option to enable/disable amount in words in print settings
This commit is contained in:
parent
3509ea9a89
commit
b86bdc1fc2
@ -11,5 +11,6 @@ export class PrintSettings extends Doc {
|
||||
color?: string;
|
||||
font?: string;
|
||||
displayLogo?: boolean;
|
||||
amountInWords?: boolean;
|
||||
override hidden: HiddenMap = {};
|
||||
}
|
||||
|
@ -114,6 +114,12 @@
|
||||
"label": "Display Logo in Invoice",
|
||||
"fieldtype": "Check",
|
||||
"section": "Customizations"
|
||||
},
|
||||
{
|
||||
"fieldname": "amountInWords",
|
||||
"label": "Display Amount In Words",
|
||||
"fieldtype": "Check",
|
||||
"section": "Customizations"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ const printSettingsFields = [
|
||||
'phone',
|
||||
'address',
|
||||
'companyName',
|
||||
'amountInWords',
|
||||
];
|
||||
const accountingSettingsFields = ['gstin', 'taxId'];
|
||||
|
||||
|
@ -126,7 +126,7 @@
|
||||
<h3 class="text-lg font-semibold">Notes</h3>
|
||||
<p class="mt-4 text-lg whitespace-pre-line">{{ doc.terms }}</p>
|
||||
</section>
|
||||
<div class="flex justify-end mt-10">
|
||||
<div v-if="print.amountInWords" class="flex justify-end mt-10">
|
||||
<h3 class="text-lg font-semibold mr-2">Grand Total In Words:</h3>
|
||||
<p>{{doc.grandTotalInWords}}</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user