From 32421f9a8030b57a5713b992e55e9cba609493a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Sat, 30 Jan 2016 16:29:28 +0100 Subject: [PATCH] =?utf8?q?Gelangensbest=C3=A4tigung=20als=20Weiche=20in=20?= =?utf8?q?io.pl=20UND=20Helper=20PrintOptions.pm?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Helper/PrintOptions.pm | 1 + bin/mozilla/io.pl | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index 2d842afc0..da6cdf313 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -51,6 +51,7 @@ sub get_print_options { ($form->{type} eq 'sales_order') ? ( opthash("sales_order", $form->{PD}{sales_order}, $locale->text('Confirmation')), opthash("proforma", $form->{PD}{proforma}, $locale->text('Proforma Invoice')), + opthash("ic_supply", $form->{PD}{ic_supply}, $locale->text('Intra-Community supply')), ) : undef, ($form->{type} =~ /sales_quotation$/) ? opthash('sales_quotation', $form->{PD}{sales_quotation}, $locale->text('Quotation')) : undef, diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 1dc7a64d1..f77a5f76e 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1245,6 +1245,17 @@ sub print_form { $order = 1; } + if (($form->{type} eq 'sales_order') && ($form->{formname} eq 'ic_supply') ) { + $inv = "inv"; + $due = "due"; + $form->{"${inv}date"} = $form->{transdate}; + $form->{"invdate"} = $form->{transdate}; + $form->{invnumber} = $form->{ordnumber}; + $form->{label} = $locale->text('Intra-Community supply'); + $numberfld = "sonumber"; + $order = 1; + } + if ($form->{formname} eq 'request_quotation') { $inv = "quo"; $due = "req"; -- 2.20.1