From 60f784c0d41cc5d466873f9a88e3298d5404b100 Mon Sep 17 00:00:00 2001
From: Moritz Bunkus
Date: Thu, 2 Dec 2010 11:13:43 +0100
Subject: [PATCH] =?utf8?q?Unterscheidung=20Bankeinzug/=C3=9Cberweisung=20b?=
=?utf8?q?eim=20Abschlie=C3=9Fen?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
---
bin/mozilla/sepa.pl | 6 ++++--
locale/de/all | 1 +
.../sepa/bank_transfer_mark_as_closed_step1.html | 9 +++++++--
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/bin/mozilla/sepa.pl b/bin/mozilla/sepa.pl
index 6cdc35f94..ba21d818b 100755
--- a/bin/mozilla/sepa.pl
+++ b/bin/mozilla/sepa.pl
@@ -499,6 +499,7 @@ sub bank_transfer_mark_as_closed_step1 {
my $form = $main::form;
my $locale = $main::locale;
+ my $vc = $form->{vc} eq 'customer' ? 'customer' : 'vendor';
my @export_ids = map { $_->{id} } grep { $_->{selected} } @{ $form->{exports} || [] };
@@ -508,7 +509,7 @@ sub bank_transfer_mark_as_closed_step1 {
my @open_export_ids = ();
foreach my $id (@export_ids) {
- my $export = SL::SEPA->retrieve_export('id' => $id);
+ my $export = SL::SEPA->retrieve_export('id' => $id, vc => $vc);
push @open_export_ids, $id if (!$export->{closed});
}
@@ -518,11 +519,12 @@ sub bank_transfer_mark_as_closed_step1 {
$form->{title} = $locale->text('Close SEPA exports');
$form->header();
- print $form->parse_html_template('sepa/bank_transfer_mark_as_closed_step1', { 'OPEN_EXPORT_IDS' => \@open_export_ids });
+ print $form->parse_html_template('sepa/bank_transfer_mark_as_closed_step1', { 'OPEN_EXPORT_IDS' => \@open_export_ids, vc => $vc });
$main::lxdebug->leave_sub();
}
+# TODO
sub bank_transfer_mark_as_closed_step2 {
$main::lxdebug->enter_sub();
diff --git a/locale/de/all b/locale/de/all
index 883d661e5..5e4dea0cf 100644
--- a/locale/de/all
+++ b/locale/de/all
@@ -556,6 +556,7 @@ $self->{texts} = {
'Display' => 'Anzeigen',
'Display file' => 'Datei anzeigen',
'Display options' => 'Anzeigeoptionen',
+ 'Do you really want to close the following SEPA exports? No payment will be recorded for bank collections that haven\'t been marked as executed yet.' => 'Wollen Sie wirklich die folgenden SEPA-Exporte abschließen? Für Überweisungen, die noch nicht gebucht wurden, werden dann keine Zahlungen verbucht.',
'Do you really want to close the following SEPA exports? No payment will be recorded for bank transfers that haven\'t been marked as executed yet.' => 'Wollen Sie wirklich die folgenden SEPA-Exporte abschließen? Für Überweisungen, die noch nicht gebucht wurden, werden dann keine Zahlungen verbucht.',
'Do you really want to delete AP transaction #1?' => 'Wollen Sie wirklich die Kreditorenbuchung #1 löschen?',
'Do you really want to delete AR transaction #1?' => 'Wollen Sie wirklich die Debitorenbuchung #1 löschen?',
diff --git a/templates/webpages/sepa/bank_transfer_mark_as_closed_step1.html b/templates/webpages/sepa/bank_transfer_mark_as_closed_step1.html
index 4d1a6dcf2..063b4eec4 100644
--- a/templates/webpages/sepa/bank_transfer_mark_as_closed_step1.html
+++ b/templates/webpages/sepa/bank_transfer_mark_as_closed_step1.html
@@ -6,7 +6,11 @@