From: Moritz Bunkus Date: Thu, 1 Oct 2015 14:31:19 +0000 (+0200) Subject: Kreditorenbuchungen: In Kopf anzeigen, in welchen SEPA-Exporten der Beleg enthalten ist X-Git-Tag: release-3.4.1~673 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=267cb27975e76f64a86cd2d45804c792bcc045bd;p=kivitendo-erp.git Kreditorenbuchungen: In Kopf anzeigen, in welchen SEPA-Exporten der Beleg enthalten ist --- diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 7506693b1..1d9eac7d7 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -42,6 +42,7 @@ use SL::IS; use SL::PE; use SL::ReportGenerator; use SL::DB::Default; +use SL::DB::PurchaseInvoice; require "bin/mozilla/arap.pl"; require "bin/mozilla/common.pl"; @@ -217,6 +218,8 @@ sub form_header { $main::auth->assert('general_ledger'); + $::form->{invoice_obj} = SL::DB::PurchaseInvoice->new(id => $::form->{id})->load if $::form->{id}; + $form->{title_} = $form->{title}; $form->{title} = $form->{title} eq 'Add' ? $locale->text('Add Accounts Payables Transaction') : $locale->text('Edit Accounts Payables Transaction'); diff --git a/templates/webpages/ap/form_header.html b/templates/webpages/ap/form_header.html index f65b3014b..8720c7340 100644 --- a/templates/webpages/ap/form_header.html +++ b/templates/webpages/ap/form_header.html @@ -116,6 +116,18 @@ +[%- IF invoice_obj.sepa_exports.as_list.size %] + + [% LxERP.t8("SEPA exports") %] + + [% FOREACH export = invoice_obj.sepa_exports.as_list %] + [% HTML.escape(export.id) %] + [% UNLESS loop.last %], [% END %] + [% END %] + + +[%- END %] + [% 'Currency' | $T8 %]