From 6d70c6a247b5046219d135f29d1cf0066b53ee9b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 12 May 2009 12:14:42 +0000 Subject: [PATCH] =?utf8?q?=C3=9Cberreste=20aus=20altem=20Query=20sorgen=20?= =?utf8?q?f=C3=BCr=20ung=C3=BCltige=20SQL-Abfrage.=20Fix=20f=C3=BCr=20Bug?= =?utf8?q?=20966.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/GL.pm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/SL/GL.pm b/SL/GL.pm index bdd4bcdda..db9d9aec9 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -346,8 +346,7 @@ sub all_transactions { qq|SELECT ac.acc_trans_id, g.id, 'gl' AS type, $false AS invoice, g.reference, ac.taxkey, c.link, g.description, ac.transdate, ac.source, ac.trans_id, - ac.amount, c.accno, g.notes, t.chart_id, - CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee + ac.amount, c.accno, g.notes, t.chart_id $project_columns $columns_for_sorting{gl} FROM gl g, acc_trans ac $project_join, chart c @@ -360,8 +359,7 @@ sub all_transactions { SELECT ac.acc_trans_id, a.id, 'ar' AS type, a.invoice, a.invnumber, ac.taxkey, c.link, ct.name, ac.transdate, ac.source, ac.trans_id, - ac.amount, c.accno, a.notes, t.chart_id, - CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee + ac.amount, c.accno, a.notes, t.chart_id $project_columns $columns_for_sorting{arap} FROM ar a, acc_trans ac $project_join, customer ct, chart c @@ -375,8 +373,7 @@ sub all_transactions { SELECT ac.acc_trans_id, a.id, 'ap' AS type, a.invoice, a.invnumber, ac.taxkey, c.link, ct.name, ac.transdate, ac.source, ac.trans_id, - ac.amount, c.accno, a.notes, t.chart_id, - CASE WHEN (COALESCE(e.name, '') = '') THEN e.login ELSE e.name END AS employee + ac.amount, c.accno, a.notes, t.chart_id $project_columns $columns_for_sorting{arap} FROM ap a, acc_trans ac $project_join, vendor ct, chart c -- 2.20.1