Merge pull request #5986 from expsa/samir_akadawi_fix_report_api

[UPD] odex_takaful: separate payments methods on receipt
This commit is contained in:
SamirLADOUI-sa 2026-01-05 12:16:15 +01:00 committed by GitHub
commit 05d8e25112
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 35 additions and 18 deletions

View File

@ -120,24 +120,6 @@
</td>
</tr>
<!-- Payment Method Row: وسيلة الدفع -->
<tr>
<td style="text-align: right; padding: 8px; font-size: 1.5rem; color: #6B6B6A; font-weight: bold;"
colspan="2">
<strong>
<span style="margin-left: 10px;">وسيلة الدفع:</span>
</strong>
</td>
<td style="text-align: center; padding: 8px; font-size: 1.5rem; color: #387F75; font-weight: bold;">
<t t-if="doc.payment_details_lines">
<span t-esc="doc.payment_details_lines[0].payment_method_id.name or doc.payment_details_lines[0].payment_method"/>
</t>
<t t-else="">
<span>غير محدد</span>
</t>
</td>
</tr>
<!-- Total row (same as المجموع but using amount_total if needed in future) -->
<tr>
<td style="text-align: right; padding: 8px; font-size: 1.5rem; color: #6B6B6A; font-weight: bold;"
@ -152,6 +134,41 @@
</tr>
</tbody>
</table>
<!-- Payments table: وسيلة الدفع والمبلغ -->
<table class="table table-bordered" style="text-align: right; margin-top: 12px;">
<thead>
<tr style="background-color: white;">
<th style="text-align: right; width: 75%; font-size: 1.5rem; padding: 8px; color: #6B6B6A; font-weight: bold;">
وسيلة الدفع
</th>
<th style="text-align: center; width: 25%; font-size: 1.5rem; padding: 8px; color: #6B6B6A; font-weight: bold;">
المبلغ
</th>
</tr>
</thead>
<tbody>
<t t-if="doc.payment_ids">
<t t-foreach="doc.payment_ids" t-as="pay">
<tr>
<td style="text-align: right; padding: 8px; font-size: 1.5rem; color: #387F75; font-weight: bold;">
<span t-esc="pay.payment_method_line_id.name or pay.payment_method_id.name"/>
</td>
<td style="text-align: center; padding: 8px; font-size: 1.5rem; color: #387F75; font-weight: bold;">
<span t-esc="pay.amount"/>
</td>
</tr>
</t>
</t>
<t t-else="">
<tr>
<td colspan="2" style="text-align: center; padding: 8px; font-size: 1.5rem; color: #6B6B6A;">
<span>لا توجد دفعات</span>
</td>
</tr>
</t>
</tbody>
</table>
</div>
</div>
</t>