Merge pull request #4502 from nabinhait/general_ledger_fix

[fix][report] General Ledger
This commit is contained in:
Anand Doshi 2015-12-15 15:18:20 +05:30
commit b26c3f2263

View File

@ -178,7 +178,8 @@ def get_data_with_opening_closing(filters, account_details, gl_entries):
else:
for gl in gl_entries:
if gl.posting_date >= getdate(filters.from_date) and gl.posting_date <= getdate(filters.to_date):
if gl.posting_date >= getdate(filters.from_date) and gl.posting_date <= getdate(filters.to_date) \
and gl.is_opening == "No":
data.append(gl)