Skip to content

Commit

Permalink
[UPD] ssi_fixed_asset_report
Browse files Browse the repository at this point in the history
  • Loading branch information
andhit-r committed Mar 6, 2024
1 parent 4acab54 commit 6a4b315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _prepare_report_fixed_asset(self):

def _get_nbv_previous_year(self, asset):
# date_end = date(int(self.year), 12, 31)
date_end = self.fiscal_year_id.date_end + relativedelta(months=-1, day=31)
date_end = self.fiscal_year_id.date_start + relativedelta(months=-1, day=31)
filtered = asset.depreciation_line_ids.filtered(
lambda x: x.line_date <= date_end and (x.init_entry or x.move_check)
)
Expand All @@ -155,7 +155,7 @@ def _get_nbv_previous_year(self, asset):

def _get_dpr_previous_year(self, asset):
# date_end = date(int(self.year), 12, 31)
date_end = self.fiscal_year_id.date_end + relativedelta(months=-1, day=31)
date_end = self.fiscal_year_id.date_start + relativedelta(months=-1, day=31)
filtered = asset.depreciation_line_ids.filtered(
lambda x: x.line_date <= date_end and (x.init_entry or x.move_check)
)
Expand Down

0 comments on commit 6a4b315

Please sign in to comment.