Closed Berlinst closed 3 months ago
This isn't my area of expertise, so I cannot say there is a bug or not, but after some tests with XDebug I found a few things:
The value shown in the "Account net value" seems to be what the value would be at the end of the current year. When calculating the amortization, a set of values is calculated for each year between the purchase date and the current year. The first year is prorated. The values for each year include the starting value, value, and the annuity. Your first example has the starting date at the start of 2020, meaning this is the 5th year. The 144.44 value is how much is left after this year finishes (The left over is from the difference between the start of 2020 and the startup date).
TCO: Value + Cost From Tickets
Monthly TCO: TCO / Months Between Purchase Date And Now
I don't currently know how the decreasing mode amortization is calculated. The code comments and variables are all in French (I'm not very good with it) and seems quite complex.
Hello @cconard96,
Thank you for your detailed response. Your explanations regarding "Monthly TCO" and "Account Net Value" were very enlightening and helped me understand better how these values are calculated in GLPI.
However, I'd like to raise a point about the "Account Net Value." You mentioned that it seems to represent what the value would be at the end of the current year, with the first year being prorated. While I understand this perspective, I believe that the "Account Net Value" should be calculated from the startup date up to the current date, rather than being estimated only until the end of the current year.
The reason for my suggestion is that if we were to sell the asset today, knowing its current value would be essential. Depreciation or amortization is a continuous process over time, so it would be more useful for GLPI users to have a representation of the asset's value up to the present moment.
Once again, thank you for your assistance and clarifications on these points.
@cconard96, just one more thing. You mentioned that you're not currently familiar with how the decreasing mode amortization is calculated in GLPI, but do you have any ideas or insights on how the 'Amortization Type: Decreasing' and 'Amortization Coefficient' works in general?
I've reworked linear part a while ago, see: https://github.com/glpi-project/glpi/pull/2931 Tests has been added, and it's been validated. This part should work as expected. Keep in mind it's based on exact date, not months.
To know how it works, you could rely on the following (I did not find any non french information): https://www.compta-facile.com/construire-tableau-plan-amortissement-lineaire/ https://www.compta-facile.com/construire-tableau-plan-amortissement-degressif/
Those are (certainly) french accountancy rules; I have a very little idea how this works in France; but absolutely not for all other countries (as I already said in https://github.com/glpi-project/glpi/issues/3082 several years ago).
Since the "linear" part was the simplest case and was still totally broken in 2017; I really doubt "decreasing" part has worked as expected from a while.
Code of Conduct
Is there an existing issue for this?
Version
10.0.15
Bug description
Hello! We’ve noticed some discrepancies in the 'Financial and administrative information' within the 'Management' tab of the assets in GLPI. Let me illustrate with two examples:
Example 1. Date of the photo: 03-05-2024
Given that only 4 years have passed, the account's net value appears to be unexpectedly low at 311.11. Shouldn't it be at least 1900.00?
Example 2. Date of the photo: 03-05-2024
Considering only 1 month has passed since the startup date, the account's net value seems unusually low at 8511.11. Shouldn't it be at least 9800.00?
Additionally, there are other related issues documented: #3082 and #3168 . As well as discussions on the GLPI forums at:
https://forum.glpi-project.org/viewtopic.php?id=5014 https://forum.glpi-project.org/viewtopic.php?id=159219
By the way, we would appreciate clarification on how the “Account net value” and the “Monthly TCO” are calculated.
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response