Hello my friends!
In the contribution register qweb template, we would want to write the payslip number (from hr.payslip) for each line.
sd
Our PDF report is like this : (see ######)
We have this code in the file report_contributionregister.xml :
<table class="table table-condensed">
<thead>
<tr>
<th>Number</th>
<th>PaySlip name</th>
<th>Code</th>
<th>Name</th>
<th>Quantity</th>
<th>Amount</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr t-foreach="get_payslip_lines(o)" t-as="r">
<td>
<span>######</span>
<span t-esc="r.get('number')"/>
</td>
<td><span t-esc="r.get('payslip_name')"/></td>
<td><span t-esc="r['code']"/></td>
<td><span t-esc="r['name']"/></td>
<td><span t-esc="formatLang(r['quantity'])"/></td>
<td><span t-esc="formatLang(r['amount'])"/></td>
<td><span t-esc=" formatLang(r['total'], currency_obj=o.company_id and o.company_id.currency_id)"/></td>
</tr>
</tbody>
</table>
Could we help please?
I have also tried . error.