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

Refactored Business template, used isSalesInvoice computed property rather than directly checking there in the template for it

This commit is contained in:
Piyush Singhania 2021-09-15 17:51:39 +05:30 committed by 18alantom
parent fc8ba4da6a
commit 59201366b7

View File

@ -34,7 +34,7 @@
<div class="mt-8 text-lg">
<div class="flex">
<div class="w-1/3 font-semibold">
{{ doc.doctype === 'SalesInvoice' ? 'Invoice' : 'Bill' }}
{{ isSalesInvoice ? 'Invoice' : 'Bill' }}
</div>
<div class="w-2/3 text-gray-800">
<div class="font-semibold">
@ -47,7 +47,7 @@
</div>
<div class="mt-4 flex">
<div class="w-1/3 font-semibold">
{{ doc.doctype === 'SalesInvoice' ? 'Customer' : 'Supplier' }}
{{ isSalesInvoice ? 'Customer' : 'Supplier' }}
</div>
<div class="w-2/3 text-gray-800" v-if="party">
<div class="font-semibold">