From d6d354b5c317158d0fec376a7cf62f6cb2e7bf78 Mon Sep 17 00:00:00 2001 From: Chris Ian Fiel Date: Thu, 17 Dec 2015 09:42:12 +0800 Subject: [PATCH] By: nabinhait Depreciation account is an expense account, it is debited while booking depreciation. Thats why Depreciation amount is coming as negative, I think it should be positive and added to the "Net Profit and Loss". --- erpnext/accounts/report/financial_statements.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index be13ea57f21..c6a7ab5db32 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -269,6 +269,8 @@ def get_data_account_type(company, account_type, period_list): (company, period['from_date'], period['to_date'], account_type)) if gl_sum[0]: amount = gl_sum[0] + if account_type == "Depreciation": + amount *= -1 else: amount = 0 data.update({"from_date": period['from_date'], "to_date": period['to_date'], period["key"]: amount})