From 312edcf844dc5f76d57c3a3d4e57701d7ba3c747 Mon Sep 17 00:00:00 2001 From: Peter Schulgin Date: Tue, 7 Jan 2014 10:21:49 +0100 Subject: [PATCH] Berichte-Rechnungen: Steuerzone/Zahlungsbedingungen aus Rechnung statt aus Stammdaten Behebt #2224 --- SL/AR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/AR.pm b/SL/AR.pm index 80fc8ef7a..c52a00fd5 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -509,8 +509,8 @@ sub ar_transactions { qq|LEFT JOIN employee e ON (a.employee_id = e.id) | . qq|LEFT JOIN employee e2 ON (a.salesman_id = e2.id) | . qq|LEFT JOIN project pr ON (a.globalproject_id = pr.id)| . - qq|LEFT JOIN tax_zones tz ON (tz.id = c.taxzone_id)| . - qq|LEFT JOIN payment_terms pt ON (pt.id = c.payment_id)| . + qq|LEFT JOIN tax_zones tz ON (tz.id = a.taxzone_id)| . + qq|LEFT JOIN payment_terms pt ON (pt.id = a.payment_id)| . qq|LEFT JOIN business b ON (b.id = c.business_id)| . qq|LEFT JOIN department d ON (d.id = a.department_id)|; -- 2.20.1