mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +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:
parent
d8ae1f37d8
commit
4aeffabfa8
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -30,7 +30,8 @@
|
||||
meta.isSubmittable &&
|
||||
doc &&
|
||||
!doc.submitted &&
|
||||
!doc._notInserted
|
||||
!doc._notInserted &&
|
||||
!(doc.cancelled || false)
|
||||
"
|
||||
class="ml-2 text-white text-xs"
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user