From 6a4b3152fbf75f016f333d79e4fddc050d690a77 Mon Sep 17 00:00:00 2001 From: Andhitia Rama Date: Wed, 6 Mar 2024 08:33:28 +0700 Subject: [PATCH] [UPD] ssi_fixed_asset_report --- ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py b/ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py index 01f4344..7cd4b60 100644 --- a/ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py +++ b/ssi_fixed_asset_report/wizards/wizard_fixed_asset_yearly.py @@ -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) ) @@ -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) )