Commit 6979351c authored by Axel Pelerin's avatar Axel Pelerin Committed by ntome

[caissedepargne] Fix loan rate

The rate in real estate loans for particular account was divided by 100 when it was not
needed, the website already contains rate in the correct format.

Closes: 13041@zendesk
parent 9b1de2fd
......@@ -524,12 +524,12 @@ class IndexPage(LoggedPage, HTMLPage):
obj_label = Env('label')
obj_type = Loan.TYPE_LOAN
obj_total_amount = MyDecimal(MyTableCell("total_amount"))
obj_rate = Eval(lambda x: x / 100, MyDecimal(MyTableCell("rate", default=NotAvailable), default=NotAvailable))
obj_balance = MyDecimal(MyTableCell("balance"), sign=lambda x: -1)
obj_currency = Currency(MyTableCell("balance"))
obj_last_payment_date = Date(CleanText(MyTableCell("last_payment_date")))
obj_next_payment_amount = MyDecimal(MyTableCell("next_payment_amount"))
obj_next_payment_date = Date(CleanText(MyTableCell("next_payment_date", default=''), default=NotAvailable), default=NotAvailable)
obj_rate = MyDecimal(MyTableCell("rate", default=NotAvailable), default=NotAvailable)
def submit_form(self, form, eventargument, eventtarget, scriptmanager):
form['__EVENTARGUMENT'] = eventargument
......
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