From 2c5dcbe819fd87aa8a54eb5da945ae1f17fc8d20 Mon Sep 17 00:00:00 2001 From: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com> Date: Wed, 14 Aug 2019 14:26:37 +0530 Subject: [PATCH] fix: Error handling in payment entry (#18720) --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index e0d3e7ada3..8098329530 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