Payment Entry: Test cases and default remarks
This commit is contained in:
@@ -462,7 +462,7 @@ class AccountsController(TransactionBase):
|
||||
formatted_order_total = fmt_money(order_total, precision=self.precision("base_grand_total"),
|
||||
currency=advance.account_currency)
|
||||
|
||||
if self.currency == self.company_currency:
|
||||
if self.currency == self.company_currency and advance_paid > order_total:
|
||||
frappe.throw(_("Total advance ({0}) against Order {1} cannot be greater than the Grand Total ({2})")
|
||||
.format(formatted_advance_paid, self.name, formatted_order_total))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user