mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
@@ -35,7 +35,7 @@ class LoanRefund(AccountsController):
|
|||||||
excess_amount = pending_amount * -1
|
excess_amount = pending_amount * -1
|
||||||
|
|
||||||
if self.refund_amount > excess_amount:
|
if self.refund_amount > excess_amount:
|
||||||
frappe.throw(_("Refund amount cannot be greater than excess amount {}".format(excess_amount)))
|
frappe.throw(_("Refund amount cannot be greater than excess amount {0}").format(excess_amount))
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
self.update_outstanding_amount()
|
self.update_outstanding_amount()
|
||||||
|
|||||||
Reference in New Issue
Block a user