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".
This commit is contained in:
parent
7d310bd182
commit
d6d354b5c3
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user