Auftrags-Controller: Lieferantendetails ("D"): keine Preisgruppe bei Lieferanten
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 6 Jul 2018 13:49:30 +0000 (15:49 +0200)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 6 Jul 2018 13:49:30 +0000 (15:49 +0200)
SL/Controller/Order.pm

index 4e09576..ace7acc 100644 (file)
@@ -629,7 +629,7 @@ sub action_show_customer_vendor_details_dialog {
   $details{language}            = $cv->language_obj->description  if $cv->language_obj;
   $details{delivery_terms}      = $cv->delivery_term->description if $cv->delivery_term;
   $details{payment_terms}       = $cv->payment->description       if $cv->payment;
-  $details{pricegroup}          = $cv->pricegroup->pricegroup     if $cv->pricegroup;
+  $details{pricegroup}          = $cv->pricegroup->pricegroup     if $is_customer && $cv->pricegroup;
 
   foreach my $entry (@{ $cv->shipto }) {
     push @{ $details{SHIPTO} },   { map { $_ => $entry->$_ } @{$entry->meta->columns} };