From a1070c2d94abd46d8bba45c2a57609e59f2582a9 Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Sat, 10 Nov 2007 14:45:51 +0000 Subject: [PATCH] Beim Umwandeln von Auftrag in Rechnung wurden die Zahlungsbedingungen des Kunden und nicht die des Auftrags verwendet --- SL/IS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1