fix report payroll

This commit is contained in:
Bakry 2025-09-24 17:39:46 +03:00
parent 7e04b99088
commit b42942e613
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@
</td>
<td>
<!-- <strong>-->
<!-- <span t-esc="sum([s.total for s in o.loan_ids])"-->
<!-- <span t-esc="sum([s.amount for s in o.loan_ids])"-->
<!-- t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>-->
<!-- </strong>-->
</td>
@ -65,13 +65,13 @@
</td>
<td>
<strong>
<span t-esc="sum([s.amount for s in o.line_ids.filtered(lambda line: line.appears_on_payslip)])"
<span t-esc="round( sum([s.amount for s in o.line_ids.filtered(lambda line: line.appears_on_payslip)]) + sum([s.amount for s in o.loan_ids]), 2)"
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</strong>
</td>
<td>
<strong>
<span t-esc="sum([s.total for s in o.line_ids.filtered(lambda line: line.appears_on_payslip)])"
<span t-esc="round(sum([s.total for s in o.line_ids.filtered(lambda line: line.appears_on_payslip)]) + sum([s.amount for s in o.loan_ids]), 2)"
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</strong>
</td>