From: Waldemar Toews
Date: Wed, 13 Feb 2013 15:39:03 +0000 (+0100)
Subject: Gesammtbetrag in der Maske für SEPA Überweisung ausgeben.
X-Git-Tag: release-3.1.0beta1~22^2~22^2~21^2~6
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1f6a2920746912f82410c5855c15b2f6e6c434f9;p=kivitendo-erp.git
Gesammtbetrag in der Maske für SEPA Überweisung ausgeben.
---
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 %]