Commit ebc19fe7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_crm: Ensure we are rounding floats

parent 641bcd6a
......@@ -33,7 +33,7 @@ for payment in person.Person_getSubscriptionRequestFirstUnpaidPaymentList():
unpaid_payment_amount += payment.PaymentTransaction_getTotalPayablePrice()
# It can't be smaller, we are considernig all open invoices are from unpaid_payment_amount
if round(outstanding_amount, 2) == round(-unpaid_payment_amount, 2):
if round(float(outstanding_amount), 2) == round(-float(unpaid_payment_amount), 2):
return ticket, None
if int(outstanding_amount) > 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment