X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/85d2b8bb3ea47265821098bd4cab73c681d09e92..c9c4734626e355fc52d91cb0e375b1864a49ccf6:/SL/Common.pm diff --git a/SL/Common.pm b/SL/Common.pm index 726c4c8e2..159609d30 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -441,6 +441,9 @@ sub get_vc_details { $query = qq|SELECT * FROM contacts WHERE (cp_cv_id = ?)|; $form->{CONTACTS} = selectall_hashref_query($form, $dbh, $query, $vc_id); + # Only show default pricegroup for customer, not vendor, which is why this is outside the main query + ($form->{pricegroup}) = selectrow_query($form, $dbh, qq|SELECT pricegroup FROM pricegroup WHERE id = ?|, $form->{klass}); + $dbh->disconnect(); $main::lxdebug->leave_sub();