mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
Dont add opening entries in account balance debit, credit column
This commit is contained in:
@@ -146,8 +146,8 @@ class DocType:
|
|||||||
|
|
||||||
# build dict
|
# build dict
|
||||||
p = {
|
p = {
|
||||||
'debit': flt(debit)
|
'debit': self.doc.is_opening=='No' and flt(debit) or 0
|
||||||
,'credit':flt(credit)
|
,'credit':self.doc.is_opening=='No' and flt(credit) or 0
|
||||||
,'opening': self.doc.is_opening=='Yes' and amt or 0
|
,'opening': self.doc.is_opening=='Yes' and amt or 0
|
||||||
# end date condition only if it is not opening
|
# end date condition only if it is not opening
|
||||||
,'end_date_condition':(self.doc.is_opening!='Yes' and ("and ab.end_date >= '"+self.doc.posting_date+"'") or '')
|
,'end_date_condition':(self.doc.is_opening!='Yes' and ("and ab.end_date >= '"+self.doc.posting_date+"'") or '')
|
||||||
|
|||||||
Reference in New Issue
Block a user