From 7fe033004020c39c4410d9ef5e31320e31b4dae0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 5 Mar 2010 14:45:08 +0100 Subject: [PATCH] Anzeige des offenen Rechnungsbetrags in Spalte im Mahnprozess MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1355 --- SL/DN.pm | 1 + bin/mozilla/dn.pl | 2 +- locale/de/all | 1 + templates/webpages/dunning/show_invoices_de.html | 2 ++ templates/webpages/dunning/show_invoices_master.html | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SL/DN.pm b/SL/DN.pm index 0e378d69d..5cf42b543 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -469,6 +469,7 @@ sub get_invoices { qq|SELECT a.id, a.ordnumber, a.transdate, a.invnumber, a.amount, ct.name AS customername, a.customer_id, a.duedate, + a.amount - a.paid AS open_amount, cfg.dunning_description, cfg.dunning_level, diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index cf85bf515..845d2cd64 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -132,7 +132,7 @@ sub show_invoices { if ($row->{next_dunning_config_id}) { map { $_->{SELECTED} = $_->{id} == $row->{next_dunning_config_id} } @{ $row->{DUNNING_CONFIG } }; } - map { $row->{$_} = $form->format_amount(\%myconfig, $row->{$_} * 1, -2) } qw(amount fee interest); + map { $row->{$_} = $form->format_amount(\%myconfig, $row->{$_} * 1, -2) } qw(amount open_amount fee interest); } $form->get_lists('printers' => 'printers', diff --git a/locale/de/all b/locale/de/all index 2406b5413..4d3e03959 100644 --- a/locale/de/all +++ b/locale/de/all @@ -1098,6 +1098,7 @@ $self->{texts} = { 'One or more Perl modules missing' => 'Ein oder mehr Perl-Module fehlen', 'Only due follow-ups' => 'Nur fällige Wiedervorlagen', 'Open' => 'Offen', + 'Open Amount' => 'Offener Betrag', 'Open amount' => 'offener Betrag', 'OpenDocument/OASIS' => 'OpenDocument/OASIS', 'Openings' => 'Öffnungszeiten', diff --git a/templates/webpages/dunning/show_invoices_de.html b/templates/webpages/dunning/show_invoices_de.html index 89fb48f06..5dbb0d517 100644 --- a/templates/webpages/dunning/show_invoices_de.html +++ b/templates/webpages/dunning/show_invoices_de.html @@ -27,6 +27,7 @@ Rechnungsdatum Rg. Fälligkeit Betrag + Offener Betrag Zahlbar bis Kumulierte Gebühren Zinsen @@ -58,6 +59,7 @@ [% HTML.escape(row.transdate) %] [% HTML.escape(row.duedate) %] [% HTML.escape(row.amount) %] + [% HTML.escape(row.open_amount) %] [% HTML.escape(row.next_duedate) %] [% HTML.escape(row.fee) %] [% HTML.escape(row.interest) %] diff --git a/templates/webpages/dunning/show_invoices_master.html b/templates/webpages/dunning/show_invoices_master.html index 583954e7f..cdb8c2d46 100644 --- a/templates/webpages/dunning/show_invoices_master.html +++ b/templates/webpages/dunning/show_invoices_master.html @@ -29,6 +29,7 @@ Invdate Inv. Duedate Amount + Open Amount Dunning Duedate Total Fees Interest @@ -60,6 +61,7 @@ [% HTML.escape(row.transdate) %] [% HTML.escape(row.duedate) %] [% HTML.escape(row.amount) %] + [% HTML.escape(row.open_amount) %] [% HTML.escape(row.next_duedate) %] [% HTML.escape(row.fee) %] [% HTML.escape(row.interest) %] -- 2.20.1