X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fct.pl;h=66fd60ce812d60d03377daa4ea8d91b80b246679;hb=5ff43c9827db9fe9af6171a390d40bccdefc7e73;hp=09068dce4ad72353d2ddc1f5d1abda7615778ce1;hpb=0bb0eb67db98f28ec8faf8dfe8c233268332f842;p=kivitendo-erp.git diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 09068dce4..66fd60ce8 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -585,35 +585,37 @@ sub form_header { ## /LINET if ($form->{db} eq 'customer') { - #get pricegroup and form it - $form->get_pricegroup(\%myconfig, { all => 1 }); - $form->{pricegroup} = "$form->{klass}"; - $form->{pricegroup_id} = "$form->{klass}"; + #get pricegroup and form it + $form->get_pricegroup(\%myconfig, { all => 1 }); - if (@{ $form->{all_pricegroup} }) { + $form->{pricegroup} = "$form->{klass}"; + $form->{pricegroup_id} = "$form->{klass}"; - $form->{selectpricegroup} = qq|\n|; - map { - $form->{selectpricegroup} .= - qq|$_->{pricegroup}\n| - } @{ $form->{all_pricegroup} }; - } + if (@{ $form->{all_pricegroup} }) { + + $form->{selectpricegroup} = qq|\n|; + map { + $form->{selectpricegroup} .= + qq|$_->{pricegroup}\n| + } @{ $form->{all_pricegroup} }; + } - if ($form->{selectpricegroup}) { - $form->{selectpricegroup} = $form->unescape($form->{selectpricegroup}); + if ($form->{selectpricegroup}) { + $form->{selectpricegroup} = $form->unescape($form->{selectpricegroup}); - $pricegroup = - qq||; + $pricegroup = + qq||; - $form->{selectpricegroup} =~ - s/({selectpricegroup} =~ + s/($form->{selectpricegroup}|; + $pricegroup .= qq|$form->{selectpricegroup}|; + } } - } + # $locale->text('Customer Number') # $locale->text('Vendor Number') $form->{fokus} = "ct.name"; @@ -644,7 +646,7 @@ sub form_header { | . $locale->text('Company Name') . qq| - + @@ -657,7 +659,7 @@ sub form_header { | . $locale->text('Street') . qq| - + | @@ -780,12 +782,13 @@ sub form_header { | . $locale->text('Language') . qq| $lang |; -if ($form->{db} eq 'customer'){ -print qq| + if ($form->{db} eq 'customer') { + + print qq| | . $locale->text('Preisklasse') . qq| $pricegroup|; -} + } print qq| | . $locale->text('Obsolete') . qq|