-
Notifications
You must be signed in to change notification settings - Fork 105
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
[FW][FIX] account_interests: Fix when having interval to run interest #654
[FW][FIX] account_interests: Fix when having interval to run interest #654
Conversation
@rov-adhoc @ica-adhoc this PR targets 18.0 and is the last of the forward-port chain. To merge the full chain, use More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
7a5c367
to
d068391
Compare
@rov-adhoc @ica-adhoc this PR was modified / updated and has become a normal PR. It should be merged the normal way (via @roboadhoc) |
@roboadhoc r+ |
@rov-adhoc @ica-adhoc linked pull request(s) ingadhoc/odoo-academic#189 not ready. Linked PRs are not staged until all of them are ready. |
@roboadhoc r+ |
I'm sorry, @rov-adhoc: this PR is already reviewed, reviewing it again is useless. |
d068391
to
636fe3c
Compare
@roboadhoc r+ |
1 similar comment
@roboadhoc r+ |
I'm sorry, @rov-adhoc: this PR is already reviewed, reviewing it again is useless. |
34c07d9
to
7afea87
Compare
@roboadhoc r+ |
@roboadhoc r+ |
I'm sorry, @rov-adhoc: this PR is already reviewed, reviewing it again is useless. |
@roboadhoc r+ |
I'm sorry, @rov-adhoc: this PR is already reviewed, reviewing it again is useless. |
7afea87
to
400f373
Compare
@roboadhoc r+ |
X-original-commit: d7817f6
400f373
to
119c473
Compare
@roboadhoc r+ |
closes #189 X-original-commit: 04cdd73 Related: ingadhoc/account-financial-tools#654 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#189 X-original-commit: 04cdd73 Related: ingadhoc/account-financial-tools#654 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#189 X-original-commit: 04cdd73 Related: ingadhoc/account-financial-tools#654 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#189 X-original-commit: 04cdd73 Related: ingadhoc/account-financial-tools#654 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes #189 closes #193 X-original-commit: 04cdd73 Related: ingadhoc/account-financial-tools#654 Related: ingadhoc/account-financial-tools#659 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes #654 closes #659 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Related: ingadhoc/odoo-academic#193 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 closes ingadhoc#659 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Related: ingadhoc/odoo-academic#193 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 closes ingadhoc#659 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Related: ingadhoc/odoo-academic#193 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes ingadhoc#654 closes ingadhoc#659 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Related: ingadhoc/odoo-academic#193 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
closes #654 closes #659 closes #663 X-original-commit: d7817f6 Related: ingadhoc/odoo-academic#189 Related: ingadhoc/odoo-academic#193 Signed-off-by: Ignacio Cainelli <[email protected]> Signed-off-by: Camila Vives <[email protected]> Signed-off-by: rov-adhoc <[email protected]>
Se realiza el arreglo de cuando se tiene un intervalo sobre el cual calcular.
Ese intervalo afecta a la deuda de periodos anteriores.
Por ejemplo si se tiene un interes mensual de 0,0068 diario y quiere que se repita cada 5 dias. Entonces a la hora de calcular el interes del perior anterio deberia ser 0,0068 int/dias * 5 dias * deuda
por otro lado, se quita el -1 ya que si se esta incluyenda la fecha de vencimiento entonces lo que ocurria es los siguiente
factura que vence el 15/10 y la corrida es del 16/10
entraba dado ('date_maturity', '>=', from_date) y esta resta (to_date - move.invoice_date_due).days) claramente daba 1 y al restarle luego 1 quedaba en 0 y nunca se cobra ese interes por ese dia de vencimiento
Forward-Port-Of: #646