Druckvariablenarrays (no)?discount_sub_nofmt für Einträge ohne Zwischensummenflag...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 28 Sep 2012 10:50:41 +0000 (12:50 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 28 Sep 2012 10:50:41 +0000 (12:50 +0200)
SL/IS.pm
SL/OE.pm

index 82226ee..266e052 100644 (file)
--- 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"}) {
index bdff8cb..6648e22 100644 (file)
--- 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"}) {