diff --git a/report/report_scop_bordereau_payments.xml b/report/report_scop_bordereau_payments.xml index fd2a32c25484776f7baa7ab25030d8ab5edc7cfd..decf3acc3de24e28d68d99ae4fb92400745b86e6 100644 --- a/report/report_scop_bordereau_payments.xml +++ b/report/report_scop_bordereau_payments.xml @@ -76,12 +76,14 @@ <tr> <th>Date d'échéance</th> <th class="text-right">Montant appelé</th> - <th class="text-right">Montant réglé</th> + <th class="text-right">Montant dû</th> </tr> <tr t-foreach="schedule_line.get('plan')" t-as="line" style="border-bottom: 1px solid #ccc;"> - <td style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('date_maturity:day')"/></td> - <td class="text-right" style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('debit')" t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"/></td> - <td class="text-right" style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('debit') - line.get('amount_residual')" t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"/></td> + <t t-if="line.get('debit') > 0"> + <td style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('date_maturity:day')"/></td> + <td class="text-right" style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('debit')" t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"/></td> + <td class="text-right" style="border: none; background: inherit; color: inherit;"><t t-esc="line.get('amount_residual')" t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"/></td> + </t> </tr> </table> <table class="table table-sm table-striped" style="border: none;">