Skip to content

Commit

Permalink
[FIX] account_asset_management: fix asset report
Browse files Browse the repository at this point in the history
The Financial Assets report generates an error message where there is an asset
without depreciation table.
This is ok for most assets but not for those with method_number = 0 which
is the case for assets of type 'Land and Buildings'.
  • Loading branch information
luc-demeyer committed Dec 22, 2024
1 parent 472b5f9 commit 6e7a4fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def _has_assets(group, group_val):
lambda r: r.type == "depreciate"
)
dls_all = dls_all.sorted(key=lambda r: r.line_date)
if not dls_all:
if not dls_all and asset.method_number:
error_dict["no_table"] += asset
# period_start_value
dls = dls_all.filtered(lambda r: r.line_date <= wiz.date_from)
Expand Down

0 comments on commit 6e7a4fb

Please sign in to comment.