fix: Error handling in payment entry (#18720)

This commit is contained in:
Deepesh Garg 2019-08-14 14:26:37 +05:30 committed by Nabin Hait
parent 06ce1f5a40
commit 2c5dcbe819

View File

@ -683,8 +683,8 @@ def get_orders_to_be_billed(posting_date, party_type, party,
order_list = [] order_list = []
for d in orders: for d in orders:
if not (d.outstanding_amount >= filters.get("outstanding_amt_greater_than") if not (flt(d.outstanding_amount) >= flt(filters.get("outstanding_amt_greater_than"))
and d.outstanding_amount <= filters.get("outstanding_amt_less_than")): and flt(d.outstanding_amount) <= flt(filters.get("outstanding_amt_less_than"))):
continue continue
d["voucher_type"] = voucher_type d["voucher_type"] = voucher_type