fix: filter out Claimed employee advances in Expense Claim (#29046)

This commit is contained in:
Rucha Mahabal 2021-12-27 21:15:40 +05:30 committed by GitHub
parent 21b07385ba
commit 25f4de80b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ frappe.ui.form.on("Expense Claim", {
['docstatus', '=', 1], ['docstatus', '=', 1],
['employee', '=', frm.doc.employee], ['employee', '=', frm.doc.employee],
['paid_amount', '>', 0], ['paid_amount', '>', 0],
['paid_amount', '>', 'claimed_amount'] ['status', '!=', 'Claimed']
] ]
}; };
}); });