X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/6216f7b53a81a73641a2d98ea43f363b6a615b07..a1070c2d94abd46d8bba45c2a57609e59f2582a9:/SL/IS.pm diff --git a/SL/IS.pm b/SL/IS.pm index 55203db2a..a24468652 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1525,7 +1525,7 @@ sub get_customer { b.discount AS tradediscount, b.description AS business FROM customer c LEFT JOIN business b ON (b.id = c.business_id) - LEFT JOIN payment_terms pt ON (c.payment_id = pt.id) + LEFT JOIN payment_terms pt ON (($form->{payment_id} = pt.id) OR (c.payment_id = pt.id)) WHERE c.id = ?|; push @values, $cid; $ref = selectfirst_hashref_query($form, $dbh, $query, @values);