From 83ceea85773615bf3f031554fa2ef9a2bc7c7760 Mon Sep 17 00:00:00 2001 From: FIN-IT_AndriFP Date: Fri, 14 Nov 2025 14:01:33 +0700 Subject: (andri) fix printout penutupan tempo --- indoteknik_custom/models/account_move.py | 5 +- indoteknik_custom/report/report_tutup_tempo.xml | 69 ++++++++++++++++++++++--- 2 files changed, 63 insertions(+), 11 deletions(-) diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 12e8ecba..5e38b544 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -32,7 +32,6 @@ class AccountMove(models.Model): new_due_date = fields.Date(string='New Due') counter = fields.Integer(string="Counter", default=0) cost_centre_id = fields.Many2one('cost.centre', string='Cost Centre') - analytic_account_ids = fields.Many2many('account.analytic.account', string='Analytic Account') due_line = fields.One2many('due.extension.line', 'invoice_id', compute='_compute_due_line', string='Due Extension Lines') no_faktur_pajak = fields.Char(string='No Faktur Pajak') date_completed = fields.Datetime(string='Date Completed') @@ -127,8 +126,8 @@ class AccountMove(models.Model): amount = item.get('amount', 0.0) date = item.get('date') or item.get('payment_date') or '' formatted_amount = formatLang(self.env, amount, currency_obj=rec.currency_id) - lines.append(f"Paid on {date} - {formatted_amount}") - summary = "\n".join(lines) if lines else (data.get('title', '') or "") + lines.append(f"
  • Paid on {date} - {formatted_amount}
  • ") + summary = f"" if lines else (data.get('title', '') or "") except Exception: summary = "" rec.payment_info = summary diff --git a/indoteknik_custom/report/report_tutup_tempo.xml b/indoteknik_custom/report/report_tutup_tempo.xml index 1aa1367d..5fa5552f 100644 --- a/indoteknik_custom/report/report_tutup_tempo.xml +++ b/indoteknik_custom/report/report_tutup_tempo.xml @@ -91,19 +91,72 @@ Berdasarkan catatan kami, pembayaran atas beberapa invoice yang telah melewati batas waktu 30 (tiga puluh) hari adalah sebagai berikut:

    - +
    + - - - + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    InvoiceDue DateDay to DueNo.Invoice NumberInvoice DateDue DateDay to DueReferenceAmount DuePayment Terms
    + + + + + + + + + + + + + Rp. + + +
    + GRAND TOTAL INVOICE YANG BELUM DIBAYAR DAN TELAH JATUH TEMPO + + Rp. + () +
    -- cgit v1.2.3