From e1a38ef7466c0f4f2b49c496aa47588b2902a6f0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 28 Sep 2012 12:50:41 +0200 Subject: [PATCH] =?utf8?q?Druckvariablenarrays=20(no)=3Fdiscount=5Fsub=5Fn?= =?utf8?q?ofmt=20f=C3=BCr=20Eintr=C3=A4ge=20ohne=20Zwischensummenflag=20ge?= =?utf8?q?fixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IS.pm | 3 +-- SL/OE.pm | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SL/IS.pm b/SL/IS.pm index 82226ee52..266e05299 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -258,8 +258,7 @@ sub invoice_details { $subtotal_header = 0; } else { - push @{ $form->{TEMPLATE_ARRAYS}->{discount_sub} }, ""; - push @{ $form->{TEMPLATE_ARRAYS}->{nodiscount_sub} }, ""; + push @{ $form->{TEMPLATE_ARRAYS}->{$_} }, "" for qw(discount_sub nodiscount_sub discount_sub_nofmt nodiscount_sub_nofmt); } if (!$form->{"discount_$i"}) { diff --git a/SL/OE.pm b/SL/OE.pm index bdff8cb6b..6648e2242 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -1218,8 +1218,7 @@ sub order_details { $subtotal_header = 0; } else { - push @{ $form->{TEMPLATE_ARRAYS}->{discount_sub} }, ""; - push @{ $form->{TEMPLATE_ARRAYS}->{nodiscount_sub} }, ""; + push @{ $form->{TEMPLATE_ARRAYS}->{$_} }, "" for qw(discount_sub nodiscount_sub discount_sub_nofmt nodiscount_sub_nofmt); } if (!$form->{"discount_$i"}) { -- 2.20.1