fix: Message (Received Amount should be same as Paid Amount)

This commit is contained in:
Nabin Hait
2021-08-18 16:46:32 +05:30
committed by GitHub
parent 0f15ded0cd
commit 5e1ed2d7eb

View File

@@ -488,7 +488,7 @@ class PaymentEntry(AccountsController):
def validate_received_amount(self):
if self.paid_from_account_currency == self.paid_to_account_currency:
if self.paid_amount != self.received_amount:
frappe.throw(_("Received Amount cannot be greater than Paid Amount"))
frappe.throw(_("Received Amount should be same as Paid Amount"))
def set_received_amount(self):
self.base_received_amount = self.base_paid_amount