Skip to content

Commit

Permalink
ux(asset_depreciations_and_balances_pb): added zero defaults on depre…
Browse files Browse the repository at this point in the history
…ciation GL Entries
  • Loading branch information
iRaySpace committed Jan 20, 2021
1 parent 8d6645e commit 8e54adc
Showing 1 changed file with 10 additions and 0 deletions.
Expand Up @@ -154,7 +154,17 @@ def _get_data(filters):
for gl_entry in depreciation_gl_entries:
data.append({
'name': gl_entry.get('name'),
'cost_as_on_from_date': 0,
'cost_of_new_purchase': 0,
'cost_of_sold_asset': 0,
'cost_of_scrapped_asset': 0,
'cost_as_on_to_date': 0,
'accumulated_depreciation_as_on_from_date': 0,
'depreciation_amount_during_the_period': gl_entry.get('debit'),
'depreciation_eliminated_during_the_period': 0,
'accumulated_depreciation_as_on_to_date': 0,
'net_asset_value_as_on_from_date': 0,
'net_asset_value_as_on_to_date': 0,
'doctype': 'GL Entry',
})

Expand Down

0 comments on commit 8e54adc

Please sign in to comment.