Merge pull request #7675 from mbauskar/hotfix
[minor] index out of range fixes for JE
This commit is contained in:
commit
8200485baa
@ -45,6 +45,9 @@ class JournalEntry(AccountsController):
|
|||||||
self.accounts = [account for account in self.accounts
|
self.accounts = [account for account in self.accounts
|
||||||
if not (account.debit_in_account_currency==0.0 and account.credit_in_account_currency==0.0)]
|
if not (account.debit_in_account_currency==0.0 and account.credit_in_account_currency==0.0)]
|
||||||
|
|
||||||
|
if not self.accounts:
|
||||||
|
frappe.throw("Debit or Credit amount is not found in account table")
|
||||||
|
|
||||||
def on_submit(self):
|
def on_submit(self):
|
||||||
self.check_credit_limit()
|
self.check_credit_limit()
|
||||||
self.make_gl_entries()
|
self.make_gl_entries()
|
||||||
|
Loading…
Reference in New Issue
Block a user