allowed debit and credit against same acc head
This commit is contained in:
parent
c70933373b
commit
63b275c97f
@ -36,10 +36,12 @@ class DocType:
|
|||||||
msgprint("GL Entry: Debit or Credit amount is mandatory for %s" % self.doc.account)
|
msgprint("GL Entry: Debit or Credit amount is mandatory for %s" % self.doc.account)
|
||||||
raise Exception
|
raise Exception
|
||||||
|
|
||||||
|
|
||||||
|
# COMMMENTED below to allow zero amount (+ and -) entry in tax table
|
||||||
# Debit and credit can not done at the same time
|
# Debit and credit can not done at the same time
|
||||||
if flt(self.doc.credit) != 0 and flt(self.doc.debit) != 0:
|
#if flt(self.doc.credit) != 0 and flt(self.doc.debit) != 0:
|
||||||
msgprint("Sorry you cannot credit and debit under same account head.")
|
# msgprint("Sorry you cannot credit and debit under same account head.")
|
||||||
raise Exception, "Validation Error."
|
# raise Exception, "Validation Error."
|
||||||
|
|
||||||
# Cost center is required only if transaction made against pl account
|
# Cost center is required only if transaction made against pl account
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user