]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 82226ee52bf1112dde317c7eee6d8030c3a747e7..266e05299d38ade7504d30c309fcd712fe7b88cc 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 bdff8cb6bec5af5e44d5a8a19869c1b4c92b006b..6648e22428b36433bc7ff2b4989811a993f0ae00 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"}) {