Merge pull request #4741 from expsa/bakry_hr

fix report payroll
This commit is contained in:
bakry 2025-09-24 17:40:30 +03:00 committed by GitHub
commit 5238889679
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@
</td> </td>
<td> <td>
<!-- <strong>--> <!-- <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}'/>--> <!-- t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>-->
<!-- </strong>--> <!-- </strong>-->
</td> </td>
@ -65,13 +65,13 @@
</td> </td>
<td> <td>
<strong> <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}'/> t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</strong> </strong>
</td> </td>
<td> <td>
<strong> <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}'/> t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/>
</strong> </strong>
</td> </td>