diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-09-17 11:27:47 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-09-17 11:27:47 +0000 |
| commit | 1fdeef8073eb35b407bb0b3cdb26bf635b3b1629 (patch) | |
| tree | 9c423f561f8929bdeee06ed707d2e08da9c3f246 /indoteknik_custom/report | |
| parent | ef9daab07049de822b7137b4a9a5d3f1fba53992 (diff) | |
| parent | 886c28f6ebf20dcca5252341a8f6b61cd4d89d71 (diff) | |
Merged in form-sp (pull request #423)
Form sp
Diffstat (limited to 'indoteknik_custom/report')
| -rw-r--r-- | indoteknik_custom/report/report_surat_piutang copy.xml | 149 | ||||
| -rw-r--r-- | indoteknik_custom/report/report_surat_piutang.xml | 241 |
2 files changed, 390 insertions, 0 deletions
diff --git a/indoteknik_custom/report/report_surat_piutang copy.xml b/indoteknik_custom/report/report_surat_piutang copy.xml new file mode 100644 index 00000000..cb5762f3 --- /dev/null +++ b/indoteknik_custom/report/report_surat_piutang copy.xml @@ -0,0 +1,149 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- External Layout tanpa company --> + <template id="external_layout_no_company"> + <!-- HEADER --> + <div class="header"> + <img t-att-src="'https://erp.indoteknik.com/api/image/ir.attachment/datas/2498521'" + class="img img-fluid w-100"/> + </div> + + <!-- CONTENT --> + <div class="content mt-5 mb-5 ml-3 mr-3"> + <t t-raw="0"/> + </div> + + <!-- FOOTER --> + <div class="footer"> + <img t-att-src="'https://erp.indoteknik.com/api/image/ir.attachment/datas/2498529'" + style="height:60px;"/> + </div> + </template> + + <!-- Report Action --> + <record id="action_report_surat_piutang" model="ir.actions.report"> + <field name="name">Surat Peringatan Piutang</field> + <field name="model">surat.piutang</field> + <field name="report_type">qweb-pdf</field> + <field name="report_name">indoteknik_custom.report_surat_piutang_formal_custom</field> + <field name="report_file">indoteknik_custom.report_surat_piutang_formal_custom</field> + <field name="binding_model_id" ref="model_surat_piutang"/> + <field name="binding_type">report</field> + </record> + + <!-- QWeb Template Surat --> + <template id="report_surat_piutang_formal_custom"> + <t t-call="indoteknik_custom.external_layout_no_company"> + <t t-set="doc" t-value="docs[0] if docs else None"/> + + <!-- SURAT CONTENT --> + <main class="o_report_layout_standard" style="font-size:12pt; font-family: Arial, sans-serif;"> + + <!-- Header Surat --> + <div class="row mb-3"> + <div class="col-6"> + Ref. No: <t t-esc="doc.name or '-'"/> + </div> + <div class="col-6 text-right"> + Jakarta, <t t-esc="doc.send_date and doc.send_date.strftime('%d %B %Y') or '-'"/> + </div> + </div> + + <!-- Tujuan --> + <div class="mb-3"> + <strong>Kepada Yth.</strong><br/> + <t t-esc="doc.partner_id.name if doc and doc.partner_id else '-'"/><br/> + <t t-esc="doc.partner_id.street if doc and doc.partner_id else '-'"/><br/> + <t t-esc="doc.partner_id.country_id.name if doc and doc.partner_id and doc.partner_id.country_id else '-'"/> + </div> + + <!-- UP & Perihal --> + <div class="mb-4"> + U.P. : <t t-esc="doc.tujuan_nama or '-'"/><br/> + <strong>Perihal:</strong> <t t-esc="doc.perihal or '-'"/> + </div> + + <!-- Isi Surat --> + <div class="mb-3">Dengan Hormat,</div> + <div class="mb-3">Yang bertanda tangan di bawah ini menyampaikan sebagai berikut:</div> + + <div class="mb-3 text-justify"> + Namun, bersama surat ini kami ingin mengingatkan bahwa hingga tanggal surat ini dibuat, masih terdapat tagihan yang belum diselesaikan oleh pihak + <t t-esc="doc.partner_id.name if doc and doc.partner_id else '-'"/> periode bulan <t t-esc="doc.periode_invoices_terpilih or '-'"/>, berdasarkan data korespondensi dan laporan keuangan yang kami kelola, + <t t-esc="doc.partner_id.name if doc and doc.partner_id else '-'"/> (“Saudara”) masih mempunyai tagihan yang telah jatuh tempo dan belum dibayarkan sejumlah + <t t-esc="doc.grand_total_text or '-'"/> (“Tagihan”). + </div> + + <div class="mb-3">Berikut kami lampirkan Rincian Tagihan yang telah Jatuh Tempo:</div> + + <!-- Tabel Invoice --> + <table class="table table-sm table-bordered mb-4"> + <thead class="thead-light"> + <tr> + <th>Invoice Number</th> + <th>Invoice Date</th> + <th>Due Date</th> + <th class="text-center">Day to Due</th> + <th>Reference</th> + <th class="text-right">Amount Due</th> + <th>Payment Terms</th> + </tr> + </thead> + <tbody> + <t t-foreach="doc.line_ids.filtered(lambda l: l.selected)" t-as="line"> + <tr> + <td><t t-esc="line.invoice_number or '-'"/></td> + <td><t t-esc="line.invoice_date and line.invoice_date.strftime('%d-%m-%Y') or '-'"/></td> + <td><t t-esc="line.invoice_date_due and line.invoice_date_due.strftime('%d-%m-%Y') or '-'"/></td> + <td class="text-center"><t t-esc="line.new_invoice_day_to_due or '-'"/></td> + <td><t t-esc="line.ref or '-'"/></td> + <td class="text-right"><t t-esc="line.amount_residual or '-'"/></td> + <td><t t-esc="line.payment_term_id.name or '-'"/></td> + </tr> + </t> + </tbody> + <tfoot> + <tr class="font-weight-bold"> + <td colspan="6" class="text-right"> + GRAND TOTAL INVOICE YANG BELUM DIBAYAR DAN TELAH JATUH TEMPO + </td> + <td class="text-right"> + <t t-esc="doc.grand_total or '-'"/> (<t t-esc="doc.grand_total_text or '-'"/>) + </td> + </tr> + </tfoot> + </table> + + <!-- Isi Penutup --> + <div class="mb-3"> + Kami belum menerima konfirmasi pelunasan ataupun pembayaran sebagian dari total kewajiban tersebut. Kami sangat terbuka untuk berdiskusi serta mencari solusi terbaik agar kerja sama tetap berjalan baik. + </div> + + <div class="mb-3"> + Oleh karena itu, kami mohon perhatian dan itikad baik dari pihak <t t-esc="doc.partner_id.name if doc and doc.partner_id else '-'"/> untuk segera melakukan pelunasan atau memberikan informasi terkait rencana pembayaran paling lambat dalam waktu 7 (tujuh) hari kerja sejak surat ini diterima. + </div> + + <div class="mb-3"> + Jika dalam waktu yang telah ditentukan belum ada penyelesaian atau tanggapan, kami akan mempertimbangkan untuk melanjutkan proses sesuai ketentuan yang berlaku. + </div> + + <div class="mb-4"> + Demikian kami sampaikan. Atas perhatian dan kerja samanya, kami ucapkan terima kasih. + </div> + + <div class="mb-2">Hormat kami,</div> + + <!-- TTD --> + <div class="mt-5"> + <img t-att-src="'https://erp.indoteknik.com/api/image/ir.attachment/datas/2851919'" style="width:200px; height:auto;"/><br/> + <div>Nama: Akbar Prabawa<br/>Jabatan: General Manager</div> + </div> + + </main> + </t> + </template> + + </data> +</odoo> diff --git a/indoteknik_custom/report/report_surat_piutang.xml b/indoteknik_custom/report/report_surat_piutang.xml new file mode 100644 index 00000000..770aa535 --- /dev/null +++ b/indoteknik_custom/report/report_surat_piutang.xml @@ -0,0 +1,241 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <!-- Report Action --> + <record id="action_report_surat_piutang" model="ir.actions.report"> + <field name="name">Surat Peringatan Piutang</field> + <field name="model">surat.piutang</field> + <field name="report_type">qweb-pdf</field> + <field name="report_name">indoteknik_custom.report_surat_piutang</field> + <field name="report_file">indoteknik_custom.report_surat_piutang</field> + <field name="print_report_name">'%s - %s' % (object.perihal_label or '', object.partner_id.name or '')</field> + <field name="binding_model_id" ref="model_surat_piutang"/> + <field name="binding_type">report</field> + </record> + + <template id="external_layout_surat_piutang"> + <t t-call="web.html_container"> + + <!-- Header --> + <div class="header"> + <img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2498521" + style="width:100%; display: block;"/> + </div> + + <!-- Body --> + <div class="article" style="margin: 0 1.5cm 0 1.5cm; "> + <t t-raw="0"/> + </div> + + <!-- Footer --> + <div class="footer"> + <img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2859765" + style="width:100%; display: block;"/> + </div> + </t> + </template> + + + + <!-- Wrapper Template --> + <template id="report_surat_piutang"> + <t t-call="web.html_container"> + <t t-foreach="docs" t-as="doc"> + <t t-call="indoteknik_custom.report_surat_piutang_document" + t-lang="doc.partner_id.lang"/> + </t> + </t> + </template> + + <!-- Document Template --> + <template id="report_surat_piutang_document"> + <t t-call="indoteknik_custom.external_layout_surat_piutang"> + <t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)"/> + <div class="page"> + + <!-- Ref & Date --> + <div class="row mb3"> + <div class="col-6"> + Ref. No: <t t-esc="doc.name or '-'"/> + </div> + <div class="col-6 text-right"> + Jakarta, <t t-esc="doc.send_date and doc.send_date.strftime('%d %B %Y') or '-'"/> + </div> + </div> + <br/> + <!-- Tujuan --> + <div class="mb3" style="max-width:500px; word-wrap:break-word; white-space:normal;"> + <strong>Kepada Yth.</strong><br/> + <strong><t t-esc="doc.partner_id.name or '-'"/></strong><br/> + <span style="display:inline-block; max-width:400px; word-wrap:break-word; white-space:normal;"> + <t t-esc="doc.partner_id.street or ''"/> + </span><br/> + <u>Republik Indonesia</u> + </div> + <br/> + + <!-- UP & Perihal --> + <table style="margin-left:2cm;"> + <tr style="font-weight: bold;"> + <td style="padding-right:10px;">U.P.</td> + <td>: <t t-esc="doc.tujuan_nama or '-'"/></td> + </tr> + <tr style="font-weight: bold;"> + <td style="padding-right:10px;">Perihal</td> + <td>: <u><t t-esc="doc.perihal_label or '-'"/></u></td> + </tr> + </table> + + <br/> + + <!-- Isi Surat --> + <p><strong>Dengan Hormat,</strong></p> + <p>Yang bertanda tangan di bawah ini:</p> + + <p class="text-justify"> + <strong>PT. Indoteknik Dotcom Gemilang</strong>, suatu perseroan terbatas yang didirikan berdasarkan hukum Negara Republik + Indonesia, yang beralamat di Jalan Bandengan Utara 85A No. 8-9, RT.003/RW.016, Penjaringan, Penjaringan, Jakarta + Utara, DKI Jakarta 14440, Republik Indonesia, dalam hal ini diwakili secara sah oleh Akbar Prabawa selaku General + Manager, dengan ini menyampaikan sebagai berikut: + </p> + + <p class="text-justify"> + Kami mengucapkan terima kasih atas kerja sama yang telah terjalin dengan baik selama ini antara perusahaan kami + dengan <strong><t t-esc="doc.partner_id.name or '-'"/></strong>. + </p> + + <p class="text-justify"> + Namun, bersama surat ini kami ingin mengingatkan bahwa hingga tanggal surat ini dibuat, masih terdapat tagihan yang + belum diselesaikan oleh pihak <strong><t t-esc="doc.partner_id.name or '-'"/></strong> kepada kami periode bulan + <t t-esc="doc.periode_invoices_terpilih or '-'"/>, bahwa berdasarkan data korespondensi dan laporan keuangan yang kami kelola, + <t t-esc="doc.partner_id.name or '-'"/> <b>(“Saudara”)</b> masih mempunyai tagihan yang telah jatuh tempo dan belum dibayarkan sejumlah + <t t-esc="doc.grand_total_text or '-'"/> <b>(“Tagihan”)</b>. + </p> + + <p>Berikut kami lampirkan Rincian Tagihan yang telah Jatuh Tempo:</p> + + <!-- Tabel Invoice --> + <table class="table table-sm o_main_table" + style="font-size:13px; border:1px solid #000; border-collapse: collapse; width:100%; table-layout: fixed;"> + + <thead style="background:#f5f5f5;"> + <tr> + <th style="border:1px solid #000; padding:4px; width:5%; font-weight: bold;" class="text-center">No.</th> + <th style="border:1px solid #000; padding:4px; width:15%; font-weight: bold;">Invoice Number</th> + <th style="border:1px solid #000; padding:4px; width:10%; font-weight: bold;">Invoice Date</th> + <th style="border:1px solid #000; padding:4px; width:10%; font-weight: bold;">Due Date</th> + <th style="border:1px solid #000; padding:4px; width:6%; font-weight: bold;" class="text-center">Day to Due</th> + <th style="border:1px solid #000; padding:4px; width:16%; font-weight: bold;">Reference</th> + <th style="border:1px solid #000; padding:4px; width:17%; font-weight: bold;" class="text-right">Amount Due</th> + <th style="border:1px solid #000; padding:4px; width:12%; font-weight: bold;">Payment Terms</th> + </tr> + </thead> + + <tbody> + <tr t-foreach="doc.line_ids.filtered(lambda l: l.selected)" t-as="line"> + + <!-- Nomor Urut --> + <td style="border:1px solid #000; padding:4px; text-align:center;"> + <t t-esc="line.sort or '-'"/> + </td> + + <!-- Invoice Number --> + <td style="border:1px solid #000; padding:4px; word-wrap: break-word;"> + <t t-esc="line.invoice_number or '-'"/> + </td> + + <!-- Invoice Date --> + <td style="border:1px solid #000; padding:4px;"> + <t t-esc="line.invoice_date and line.invoice_date.strftime('%d-%m-%Y') or '-'"/> + </td> + + <!-- Due Date --> + <td style="border:1px solid #000; padding:4px;"> + <t t-esc="line.invoice_date_due and line.invoice_date_due.strftime('%d-%m-%Y') or '-'"/> + </td> + + <!-- Day to Due --> + <td style="border:1px solid #000; padding:4px; text-align:center;"> + <t t-esc="line.new_invoice_day_to_due or '-'"/> + </td> + + <!-- Reference --> + <td style="border:1px solid #000; padding:4px; word-wrap: break-word;"> + <t t-esc="line.ref or '-'"/> + </td> + + <!-- Amount Due --> + <td style="border:1px solid #000; padding:4px; text-align:right;"> + Rp. <t t-esc="'{:,.0f}'.format(line.amount_residual).replace(',', '.')"/> + </td> + + <!-- Payment Terms --> + <td style="border:1px solid #000; padding:4px; word-wrap: break-word;"> + <t t-esc="line.payment_term_id.name or '-'"/> + </td> + </tr> + <tr> + <td colspan="5" class="text-left" style="border:1px solid #000; padding:4px; word-wrap: break-word; white-space: normal; font-weight: bold;"> + GRAND TOTAL INVOICE YANG BELUM DIBAYAR DAN TELAH JATUH TEMPO + </td> + <td colspan="3" class="text-right" style="border:1px solid #000; padding:4px; word-wrap: break-word; white-space: normal; font-weight: bold;"> + Rp. <t t-esc="'{:,.0f}'.format(doc.grand_total).replace(',', '.')"/> + (<t t-esc="doc.grand_total_text or '-'"/>) + </td> + </tr> + </tbody> + </table> + + + <!-- Penutup --> + <p class="text-justify"> + Kami belum menerima konfirmasi pelunasan ataupun pembayaran sebagian dari total kewajiban tersebut dan kami + memahami bahwa setiap perusahaan bisa saja menghadapi kendala operasional maupun keuangan, dan kami sangat + terbuka untuk berdiskusi serta mencari solusi terbaik bersama agar kerja sama kita tetap berjalan baik ke depannya. + </p> + + <p class="text-justify"> + Oleh karena itu, kami mohon perhatian dan itikad baik dari pihak <strong><t t-esc="doc.partner_id.name or '-'"/></strong> + untuk segera melakukan pelunasan atau memberikan informasi terkait rencana pembayaran paling lambat dalam waktu 7 (tujuh) hari kerja sejak surat ini diterima. + </p> + + <p class="text-justify"> + Jika dalam waktu yang telah ditentukan belum ada penyelesaian atau tanggapan, kami akan mempertimbangkan untuk + melanjutkan proses sesuai ketentuan yang berlaku. + </p> + + <p class="text-justify"> + Demikian kami sampaikan. Atas perhatian dan kerja samanya, kami ucapkan terima kasih. + </p> + <div class="mt32"> + <p>Hormat kami,<br/> + <strong>PT. Indoteknik Dotcom Gemilang</strong> + </p> + + <div style="height:120px; position: relative;"> + <t t-if="doc.perihal != 'penagihan'"> + <img src="https://erp.indoteknik.com/api/image/ir.attachment/datas/2851919" + style="width:300px; height:auto; margin-top:-40px;"/> + </t> + <t t-else=""> + <div style="height:100px;"></div> + </t> + </div> + <table style="margin-top:10px;"> + <tr style="border-top:1px solid #000; font-weight: bold;"> + <td style="padding-right:50px; white-space: nowrap;">Nama</td> + <td>: Akbar Prabawa</td> + </tr> + <tr style="font-weight: bold;"> + <td style="padding-right:50px; white-space: nowrap;">Jabatan</td> + <td>: General Manager</td> + </tr> + </table> + </div> + </div> + </t> + </template> + + </data> +</odoo> |
