Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UPD] ssi_fixed_asset_report #124

Merged
1 commit merged into from
Mar 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
date_end = self.fiscal_year_id.date_end + 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
date_end = self.fiscal_year_id.date_end + 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
Loading