mirror of
https://github.com/frappe/books.git
synced 2025-03-16 16:12:22 +00:00
fix: payment status check function
This commit is contained in:
parent
3d7aa6ba26
commit
85cd124024
@ -258,7 +258,7 @@ export function getInvoiceStatus(doc) {
|
||||
if (!doc.submitted) {
|
||||
status = 'Draft';
|
||||
}
|
||||
if (doc.submitted === 1 && doc.outstandingAmount === 0.0) {
|
||||
if (doc.submitted === 1 && doc.outstandingAmount.isZero()) {
|
||||
status = 'Paid';
|
||||
}
|
||||
if (doc.cancelled === 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user