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

fix: payment status check function

This commit is contained in:
18alantom 2022-01-05 11:09:12 +05:30
parent 3d7aa6ba26
commit 85cd124024

View File

@ -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) {