Hi Tryton community,
Problem: Dunning email table not shown for ONE customer only (works perfectly for all others same day).
Details:
- Customer: party 2 (companyx)
- Dunning ID: 267 → line=16770 → move=5768 → invoice X-20252232
- Invoice state: ‘posted’ (NOT paid)
- Query:
SELECT * FROM account_dunning WHERE id=267shows:
Line 16770: debit=€654.40 | party=2 | maturity_date=2025-12-10 (overdue)
Key Facts:
Same day: Other customers → Table shows perfectly in the body email
Same customer: Previous dunnings → Table worked
ONLY this dunning 267 → No table rows shown on body email
Dunning state=‘waiting’ (others with ‘waiting’ work and show table in the body email sent)
Invoice X-20252232 state=‘posted’ (not paid)
html code of the table
<table style="width: 100%;">
<thead>
<tr>
<th id="description">Description</th>
<th id="reference">Rechnungs Nr.</th>
<th id="date">Date</th>
<th id="amount">Amount</th>
<th id="due-date">Due Date</th>
</tr>
</thead>
<tbody>
<tr py:for="dunning in letter.dunnings">
<td headers="description" style="text-align: left;" width="250">
${dunning.line.description if dunning.line else ''}
</td>
<td headers="reference" style="text-align: center;" width="70">
${dunning.line.number if dunning.line else ''}
</td>
<td headers="date" style="text-align: center;" width="70">
${format_date(
dunning.line.date, data['language']) if dunning.line else ''}
</td>
<td headers="amount" style="text-align: center;" width="70">
${format_currency(
dunning.amount_second_currency, data['language'],
dunning.second_currency) if dunning.amount_second_currency else ''}
</td>
<td headers="due-date" style="text-align: center;" width="60">
${format_date(
dunning.maturity_date, data['language']) if dunning.maturity_date else ''}
</td>
</tr>
</tbody>
</table>
any help will be appreciated, Thanks.