From: Moritz Bunkus Date: Fri, 28 Sep 2012 10:50:41 +0000 (+0200) Subject: Druckvariablenarrays (no)?discount_sub_nofmt für Einträge ohne Zwischensummenflag... X-Git-Tag: release-3.0.0beta1~225^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e1a38ef7466c0f4f2b49c496aa47588b2902a6f0;p=kivitendo-erp.git Druckvariablenarrays (no)?discount_sub_nofmt für Einträge ohne Zwischensummenflag gefixt --- 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"}) {