X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c7172f34ff94490977366ca8cad6c057ddc3da91..f217d072d76183bc07723dcc29503b732bd2022d:/SL/Common.pm diff --git a/SL/Common.pm b/SL/Common.pm index 126a30ed8..3b2df5bc9 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -340,7 +340,7 @@ sub get_vc_details { map { $form->{$_} = $form->format_amount($myconfig, $form->{$_} * 1) } qw(discount creditlimit); - $query = qq|SELECT * FROM shipto WHERE (trans_id = ?)|; + $query = qq|SELECT * FROM shipto WHERE (trans_id = ?) AND module LIKE 'CT'|; $form->{SHIPTO} = selectall_hashref_query($form, $dbh, $query, $vc_id); if ($vc eq 'customer') {