[fixes] test-case to validate quantity after update stock and purchase return and code-cleaning
This commit is contained in:
@@ -68,7 +68,7 @@ class AccountsController(TransactionBase):
|
||||
else:
|
||||
# show message that the amount is not paid
|
||||
frappe.db.set(self,'paid_amount',0)
|
||||
frappe.msgprint(_("Note: Payment Entry will not be created since 'Cash or Bank Account' was not specified"))
|
||||
frappe.throw(_("Note: Payment Entry will not be created since 'Cash or Bank Account' was not specified"))
|
||||
else:
|
||||
frappe.db.set(self,'paid_amount',0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user