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

fix(ux): show outstanding amount if non zero

fix: don't allow submit for cancelled Payments
fix(ui): JE credit/debit colors
This commit is contained in:
18alantom 2021-11-22 11:25:09 +05:30
parent d8ae1f37d8
commit 4aeffabfa8
3 changed files with 20 additions and 3 deletions

View File

@ -165,6 +165,22 @@
<div>{{ _('Grand Total') }}</div>
<div>{{ formattedValue('grandTotal') }}</div>
</div>
<div
v-if="doc.outstandingAmount > 0"
class="
flex
pl-2
justify-between
py-3
border-t
text-red-600
font-semibold
text-base
"
>
<div>{{ _('Outstanding Amount') }}</div>
<div>{{ formattedValue('outstandingAmount') }}</div>
</div>
</div>
</div>
</div>

View File

@ -107,10 +107,10 @@
:read-only="doc.submitted"
/>
</div>
<div class="text-right font-semibold text-green-700 px-3">
<div class="text-right font-semibold text-green-600 px-3">
{{ totalDebit }}
</div>
<div class="text-right font-semibold text-red-700 px-3">
<div class="text-right font-semibold text-red-600 px-3">
{{ totalCredit }}
</div>
</div>

View File

@ -30,7 +30,8 @@
meta.isSubmittable &&
doc &&
!doc.submitted &&
!doc._notInserted
!doc._notInserted &&
!(doc.cancelled || false)
"
class="ml-2 text-white text-xs"
>