-
- Downloads
[IMP] account(_payment), payment, web: show residual amount..
.. & hide transaction list + page numbers on HTML report. 1. Before this commit: Portal Invoices were displaying the total amount instead of the residual amount. The pay button would also trigger a payment for the total amount Now: If part of the invoice is already paid, we show the residual amount and payment transaction amount are set to residual amount so the client is asked to pay what he really needs to pay. 2. Processed transaction results in a bootstrap alert message displayed at the top of the page, showing warning, success or alert depending of the result. This alert is supposed to show thank message `post_msg` only if it set. Before this commit: Since `post_msg` is an html field and editable through summernote, it will never be empty. Indeed, empty field with summernote are replaced by a `br` tag inside a `p` tag. The condition would never be false, resulting in an empty `p` with a `br` inside being displayed at the bottom of the alert, making it looks like it is bugged. Now: The condition also consider summernote's empty string as such. 3. Remove the transaction list from the invoice portal template since it is not an important information to the client. Some client would not even understand what it is. 4. Hide page numbers on HTML report since they are not split in pages and page number remains empty, resulting in `Page: /` (Or empty square with the 'clean layout.)
Showing
- addons/account/views/account_portal_templates.xml 6 additions, 1 deletionaddons/account/views/account_portal_templates.xml
- addons/account_payment/views/account_portal_templates.xml 0 additions, 19 deletionsaddons/account_payment/views/account_portal_templates.xml
- addons/payment/models/account_invoice.py 1 addition, 1 deletionaddons/payment/models/account_invoice.py
- addons/payment/views/payment_portal_templates.xml 5 additions, 3 deletionsaddons/payment/views/payment_portal_templates.xml
- addons/web/views/report_templates.xml 4 additions, 4 deletionsaddons/web/views/report_templates.xml
Please register or sign in to comment