mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix: Show exact error message in datetime
This commit is contained in:
@@ -75,7 +75,7 @@ class LoanRepayment(AccountsController):
|
|||||||
"docstatus": 1, "against_loan": self.against_loan}, 'posting_date')
|
"docstatus": 1, "against_loan": self.against_loan}, 'posting_date')
|
||||||
|
|
||||||
if future_repayment_date:
|
if future_repayment_date:
|
||||||
frappe.throw("Repayment already made till date {0}".format(getdate(future_repayment_date)))
|
frappe.throw("Repayment already made till date {0}".format(get_datetime(future_repayment_date)))
|
||||||
|
|
||||||
def validate_amount(self):
|
def validate_amount(self):
|
||||||
precision = cint(frappe.db.get_default("currency_precision")) or 2
|
precision = cint(frappe.db.get_default("currency_precision")) or 2
|
||||||
|
|||||||
Reference in New Issue
Block a user