You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use the reminder wizard in customers and delete a line from the invoice_ids field, the computed amount due of each line become 0
When i remove a line on invoice :
To Reproduce
Affected versions: 14.0
Steps to reproduce the behavior:
Launch the action "Overdue Invoice Remind" in Invoicing/Customers/Overdue Invoice Remind
Start the action
Delete a line in the invoices list
Expected behavior
The residual amount should be computed normaly.
The text was updated successfully, but these errors were encountered:
I found that the problem was because of the mail template creation.
To debug it, i made a method "_get_mail_template" in the wizard that return the mail template like this :
And i had to change the lines related to the td of amount_untaxed,amount_total and amount_residual : <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_untaxed * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td> <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_total * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td> <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_residual * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td>
I just add _signed after the fields names to resolve it.
Like this : <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_untaxed_signed * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td> <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_total_signed * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td> <td style="padding: 5px; border: 1px solid black; text-align: right;">${format_amount(inv.amount_residual_signed * (inv.move_type == 'out_refund' and -1 or 1), inv.currency_id)}</td>
But when i try to change the mail template directly like this, it won't work i don't understand why?
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
Module
account_invoice_overdue_reminder
Describe the bug
When you use the reminder wizard in customers and delete a line from the invoice_ids field, the computed amount due of each line become 0
![image](https://private-user-images.githubusercontent.com/70909428/266236715-f57b4608-c5e9-4f9d-b71c-61236bb01f72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzQ4ODksIm5iZiI6MTcyMjEzNDU4OSwicGF0aCI6Ii83MDkwOTQyOC8yNjYyMzY3MTUtZjU3YjQ2MDgtYzVlOS00ZjlkLWI3MWMtNjEyMzZiYjAxZjcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAyNDMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiOGE1ZTJhMzBlNjIxMWUzODVkMTc3NTA3NDNiNmI2ZTE2NTRhYWQ1YmE3ZWU4NTQ3OWJkMWJjYzkwN2U2ODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8xSLmGSqoEqXBBHDa1Ca9wb75s8nqn15T0Gz1h1N17c)
![image](https://private-user-images.githubusercontent.com/70909428/266236883-383bc338-101b-4d0e-88d9-826625dc8878.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzQ4ODksIm5iZiI6MTcyMjEzNDU4OSwicGF0aCI6Ii83MDkwOTQyOC8yNjYyMzY4ODMtMzgzYmMzMzgtMTAxYi00ZDBlLTg4ZDktODI2NjI1ZGM4ODc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDAyNDMwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2NGFiYzk1OGZhMjhlY2VkNGQwYTdmM2UyOGI2MmI2M2NjYzY3MGQ1M2NkMGM4YjMzYWNiZDdjNTcwZmYzZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Fv7UFaakYNUjJiYhQcB9yd4adAjrtT59Jg7eMJZ4Zw8)
When i remove a line on invoice :
To Reproduce
Affected versions: 14.0
Steps to reproduce the behavior:
Expected behavior
The residual amount should be computed normaly.
The text was updated successfully, but these errors were encountered: