Compute deferred rate per months instead of days
Use case supplier
3 months office rental where monthly rental is 2500€ (or a total of 3*2500€).
invoice comes in late with invoice date 3/12/22 and rental period 1/11/22 - 31/1/23
Tryton calculates:
Date Debit Credit
01.11.2022 0,00 2 445,65
01.12.2022 0,00 2 527,17
01.01.2023 0,00 2 527,17
03.12.2022 7 500,00 0,00
If the invoice date were in November, then this should be 3*2500 There needs to be some means to indicate an equal spread amount by complete periods for correctness, avoiding some rounding errors as well. That is, here, the supplier deferral is not reduced to zero at the end, there remains a penny sized bug! The last deferral move should always pick up the rounding error regardless of its origin.
But since the invoice date is December, one cannot (at least not in France) prorate deferred charges prior to invoice date. The amounts for earlier periods must be caught up in the period of the invoice if not at the invoice date (I believe there is accountant flexibility there). Amounts prior to the invoice period fall under 'supplier invoices not received', not 'deferred expenses'.
Similar for clients.