-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_asset_management: Depreciation of all previous years
Co-authored-by: Simone Rubino <[email protected]>
- Loading branch information
1 parent
7683a7c
commit 577dff4
Showing
4 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
* Silvio Gregorini <[email protected]> | ||
* Stefano Pezzini <[email protected]> | ||
* Lorenzo Battistini <[email protected]> | ||
* `TAKOBI <https://takobi.online>`_: | ||
|
||
* Simone Rubino <[email protected]> | ||
* `Aion Tech <https://aiontech.company/>`_: | ||
|
||
* Simone Rubino <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Author(s): Silvio Gregorini ([email protected]) | ||
# Copyright 2019 Openforce Srls Unipersonale (www.openforce.it) | ||
# Copyright 2022 Simone Rubino - TAKOBI | ||
# Copyright 2023 Simone Rubino - Aion Tech | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
|
@@ -365,6 +366,13 @@ def generate_totals(self): | |
categ.report_id.company_id, | ||
report_date, | ||
) | ||
elif fy_end < report_date: | ||
totals_by_dep_type[dep_type][fname] += line_curr._convert( | ||
last_line["amount_depreciation_fund_curr_year"], | ||
curr, | ||
categ.report_id.company_id, | ||
report_date, | ||
) | ||
elif fname in ( | ||
"amount_in_total", | ||
"amount_out_total", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Author(s): Silvio Gregorini ([email protected]) | ||
# Copyright 2019 Openforce Srls Unipersonale (www.openforce.it) | ||
# Copyright 2022 Simone Rubino - TAKOBI | ||
# Copyright 2023 Simone Rubino - Aion Tech | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
|
@@ -397,6 +398,13 @@ def generate_totals(self): | |
categ.report_id.company_id, | ||
report_date, | ||
) | ||
elif fy_end < report_date: | ||
totals_by_dep_type[dep_type][fname] += line_curr._convert( | ||
last_line["amount_depreciation_fund_curr_year"], | ||
curr, | ||
categ.report_id.company_id, | ||
report_date, | ||
) | ||
elif fname in ( | ||
"amount_in_total", | ||
"amount_out_total", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters