From 09800b73f7503b0de87cfa1c1e53250acd2e8781 Mon Sep 17 00:00:00 2001 From: Werner Hahn Date: Tue, 22 Mar 2022 14:33:11 +0100 Subject: [PATCH] Dunning: Email und Zahlungsbedingung in Mahnlaufbericht aufgenommen --- SL/DN.pm | 4 +++- templates/webpages/dunning/show_invoices.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SL/DN.pm b/SL/DN.pm index 28eb6afc0..76ee1b834 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -657,8 +657,9 @@ sub get_invoices { ct.name AS customername, a.customer_id, a.duedate, a.amount - a.paid AS open_amount, a.direct_debit, + pt.description as payment_term, dep.description as departmentname, - + ct.invoice_mail AS cv_email, cfg.dunning_description, cfg.dunning_level, d.transdate AS dunning_date, d.duedate AS dunning_duedate, @@ -676,6 +677,7 @@ sub get_invoices { LEFT JOIN customer ct ON (a.customer_id = ct.id) LEFT JOIN department dep ON (a.department_id = dep.id) + LEFT JOIN payment_terms pt ON (a.payment_id = pt.id) LEFT JOIN dunning_config cfg ON (a.dunning_config_id = cfg.id) LEFT JOIN dunning_config nextcfg ON (nextcfg.id = diff --git a/templates/webpages/dunning/show_invoices.html b/templates/webpages/dunning/show_invoices.html index bfa979d45..949d060e5 100644 --- a/templates/webpages/dunning/show_invoices.html +++ b/templates/webpages/dunning/show_invoices.html @@ -20,6 +20,7 @@ + - + -- 2.20.1
[% 'Current / Next Level' | $T8 %][% 'Payment description' | $T8 %] [% L.checkbox_tag('selectall_active', checkall='INPUT[name*=active_]', checked=all_active) %] @@ -69,9 +70,10 @@ [% FOREACH cfg_row = row.DUNNING_CONFIG %][% END %] + [% HTML.escape(row.payment_term) %] [% HTML.escape(row.cv_email) %] [% HTML.escape(row.customername) %] [% HTML.escape(row.departmentname) %]