diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-09-15 09:27:27 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-09-15 09:27:27 +0700 |
| commit | 9bd2ed9fc3cf783cddf5424474f1ab80aebd8bd0 (patch) | |
| tree | e9803c08545536da5a4a75a8e31c1eac051a2193 | |
| parent | f5a59c79236fb24ef07ba7e337b1d9d4617fe162 (diff) | |
push po report
| -rw-r--r-- | indoteknik_custom/report/purchase_report.xml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/indoteknik_custom/report/purchase_report.xml b/indoteknik_custom/report/purchase_report.xml index 88c37969..5de4a67c 100644 --- a/indoteknik_custom/report/purchase_report.xml +++ b/indoteknik_custom/report/purchase_report.xml @@ -58,14 +58,14 @@ <!-- VENDOR & DELIVERY --> <table style="width:100%; margin-bottom:24px; border-collapse:separate; border-spacing:16px 0;"> <tr> - <td style="width:100%; border:1px solid #ccc; padding:8px; vertical-align:top;"> + <td style="width:60%; border:1px solid #ccc; padding:8px; vertical-align:top;"> <strong>Alamat Pengiriman:</strong><br/> PT Indoteknik (Bandengan 1 Depan)<br/> Jl. Bandengan Utara Komp A 8 B<br/> RT. Penjaringan, Kec. Penjaringan, Jakarta (BELAKANG INDOMARET)<br/> JK 14440 - Indonesia </td> - <td style="width:100%; border:1px solid #ccc; padding:8px; vertical-align:top;"> + <td style="width:60%; border:1px solid #ccc; padding:8px; vertical-align:top;"> <strong>Nama Vendor:</strong><br/> <span t-field="doc.partner_id.name"/><br/> <span t-field="doc.partner_id.street"/><br/> @@ -75,8 +75,9 @@ </table> <!-- ORDER LINES --> + <!-- ORDER LINES --> <table style="border-collapse:collapse; width:100%; margin-top:16px;"> - <thead> + <thead style="display: table-header-group;"> <tr style="background:#f2f2f2;"> <th style="border:1px solid #ccc; padding:4px;">Description</th> <th style="border:1px solid #ccc; padding:4px; text-align:right;">Quantity</th> @@ -87,7 +88,7 @@ </thead> <tbody> <t t-foreach="doc.order_line" t-as="line"> - <tr> + <tr style="page-break-inside: avoid;"> <td style="border:1px solid #ccc; padding:4px;"> <span t-field="line.name"/> </td> @@ -104,20 +105,21 @@ <span t-field="line.price_subtotal"/> </td> </tr> + + <!-- Tambah jarak + border atas buat deskripsi --> <t t-if="line.product_id.website_description"> - <tr> + <tr style="page-break-inside: avoid;"> <td colspan="5" style=" - padding:8px 12px; + padding:10px 12px; font-size:11px; background:#fafafa; - border-left:1px solid #ccc; - border-right:1px solid #ccc; - border-bottom:1px solid #ccc; - border-top:1px solid #ccc; + border:1px solid #ccc; + border-top:0; + margin-top:6px; page-break-inside: avoid; "> - <div style="white-space: normal; line-height:1.4;"> + <div style="white-space: normal; line-height:1.5; margin-top:4px;"> <div t-raw="line.product_id.website_description"/> </div> </td> @@ -127,6 +129,7 @@ </tbody> </table> + <!-- TOTALS --> <table style="margin-top:20px; margin-left:auto; width:40%; font-size:14px;"> <tr> |
