From 1f6a2920746912f82410c5855c15b2f6e6c434f9 Mon Sep 17 00:00:00 2001 From: Waldemar Toews Date: Wed, 13 Feb 2013 16:39:03 +0100 Subject: [PATCH] =?utf8?q?Gesammtbetrag=20in=20der=20Maske=20f=C3=BCr=20SE?= =?utf8?q?PA=20=C3=9Cberweisung=20ausgeben.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/sepa.pl | 5 ++++- locale/de/all | 1 + templates/webpages/sepa/bank_transfer_create.html | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/sepa.pl b/bin/mozilla/sepa.pl index 2850bfb14..3ac7c3ebb 100755 --- a/bin/mozilla/sepa.pl +++ b/bin/mozilla/sepa.pl @@ -1,7 +1,7 @@ use strict; use List::MoreUtils qw(any none uniq); -use List::Util qw(first); +use List::Util qw(sum first); use POSIX qw(strftime); use SL::BankAccount; @@ -105,6 +105,8 @@ sub bank_transfer_create { $form->error($locale->text('You have selected none of the invoices.')); } + my $total_trans = sum map { $_->{open_amount} } @bank_transfers; + my ($vc_bank_info); my $error_message; @@ -136,6 +138,7 @@ sub bank_transfer_create { 'bank_account_label' => $bank_account_label_sub, 'error_message' => $error_message, 'vc' => $vc, + 'total_trans' => $total_trans, }); } else { diff --git a/locale/de/all b/locale/de/all index e7c9de414..9e50555cf 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2000,6 +2000,7 @@ $self->{texts} = { 'Sum Credit' => 'Summe Haben', 'Sum Debit' => 'Summe Soll', 'Sum for' => 'Summe für', + 'Sum open amount' => 'Summierter offener Betrag', 'Sum per' => 'Summe per', 'Summen- und Saldenliste' => 'Summen- und Saldenliste', 'Superuser name' => 'Datenbankadministrator', diff --git a/templates/webpages/sepa/bank_transfer_create.html b/templates/webpages/sepa/bank_transfer_create.html index 561baec31..092498297 100644 --- a/templates/webpages/sepa/bank_transfer_create.html +++ b/templates/webpages/sepa/bank_transfer_create.html @@ -113,6 +113,10 @@

+

+ [% 'Sum open amount' | $T8 %]: [% LxERP.format_amount(total_trans, -2) %] +

+

[%- IF is_vendor %] -- 2.20.1