diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index e0d3e7ada3d..80983295303 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -683,8 +683,8 @@ def get_orders_to_be_billed(posting_date, party_type, party, order_list = [] for d in orders: - if not (d.outstanding_amount >= filters.get("outstanding_amt_greater_than") - and d.outstanding_amount <= filters.get("outstanding_amt_less_than")): + if not (flt(d.outstanding_amount) >= flt(filters.get("outstanding_amt_greater_than")) + and flt(d.outstanding_amount) <= flt(filters.get("outstanding_amt_less_than"))): continue d["voucher_type"] = voucher_type