[fixes] test-case to validate quantity after update stock and purchase return and code-cleaning

This commit is contained in:
Saurabh
2016-04-04 11:55:52 +05:30
committed by Nabin Hait
parent d697f3d6a3
commit e29248bcb3
6 changed files with 77 additions and 91 deletions

View File

@@ -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)