2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +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="mt-8 text-lg">
<div class="flex"> <div class="flex">
<div class="w-1/3 font-semibold"> <div class="w-1/3 font-semibold">
{{ doc.doctype === 'SalesInvoice' ? 'Invoice' : 'Bill' }} {{ isSalesInvoice ? 'Invoice' : 'Bill' }}
</div> </div>
<div class="w-2/3 text-gray-800"> <div class="w-2/3 text-gray-800">
<div class="font-semibold"> <div class="font-semibold">
@ -47,7 +47,7 @@
</div> </div>
<div class="mt-4 flex"> <div class="mt-4 flex">
<div class="w-1/3 font-semibold"> <div class="w-1/3 font-semibold">
{{ doc.doctype === 'SalesInvoice' ? 'Customer' : 'Supplier' }} {{ isSalesInvoice ? 'Customer' : 'Supplier' }}
</div> </div>
<div class="w-2/3 text-gray-800" v-if="party"> <div class="w-2/3 text-gray-800" v-if="party">
<div class="font-semibold"> <div class="font-semibold">