fixes
This commit is contained in:
parent
934d63de16
commit
802d717a9e
@ -39,7 +39,7 @@ class JournalEntry(AccountsController):
|
|||||||
self.check_credit_days()
|
self.check_credit_days()
|
||||||
self.validate_expense_claim()
|
self.validate_expense_claim()
|
||||||
self.validate_credit_debit_note()
|
self.validate_credit_debit_note()
|
||||||
self.validate_accounts()
|
self.validate_empty_accounts_table()
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
self.check_credit_limit()
|
self.check_credit_limit()
|
||||||
@ -452,8 +452,8 @@ class JournalEntry(AccountsController):
|
|||||||
if count:
|
if count:
|
||||||
frappe.throw(_("{0} already made against stock entry {1}".format(self.voucher_type, self.stock_entry)))
|
frappe.throw(_("{0} already made against stock entry {1}".format(self.voucher_type, self.stock_entry)))
|
||||||
|
|
||||||
def validate_accounts(self):
|
def validate_empty_accounts_table(self):
|
||||||
if not self.accounts:
|
if not self.get('accounts'):
|
||||||
frappe.throw("Accounts table cannot be blank.")
|
frappe.throw("Accounts table cannot be blank.")
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user