From e05a0e27d203b55a5d7bba31d6467ba86fbe92c0 Mon Sep 17 00:00:00 2001 From: Philip Reetz Date: Fri, 11 Nov 2005 09:05:34 +0000 Subject: [PATCH] Fixed Bug #187, UBL wenn als Kategorie nicht "alle" ausgewaehlt wird --- SL/GL.pm | 6 +++--- bin/mozilla/gl.pl | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/SL/GL.pm b/SL/GL.pm index a0d781baf..a080b85fc 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -281,9 +281,9 @@ sub all_transactions { $apwhere .= " AND c.gifi_accno = '$form->{gifi_accno}'"; } if ($form->{category} ne 'X') { - $glwhere .= " AND c.category = '$form->{category}'"; - $arwhere .= " AND c.category = '$form->{category}'"; - $apwhere .= " AND c.category = '$form->{category}'"; + $glwhere .= " AND gl.id in (SELECT trans_id FROM acc_trans ac2 WHERE ac2.chart_id IN (SELECT id FROM chart c2 WHERE c2.category = '$form->{category}'))"; + $arwhere .= " AND ar.id in (SELECT trans_id FROM acc_trans ac2 WHERE ac2.chart_id IN (SELECT id FROM chart c2 WHERE c2.category = '$form->{category}'))"; + $apwhere .= " AND ap.id in (SELECT trans_id FROM acc_trans ac2 WHERE ac2.chart_id IN (SELECT id FROM chart c2 WHERE c2.category = '$form->{category}'))"; } if ($form->{accno}) { diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index 7962daf9c..445d4f3fa 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -305,12 +305,8 @@ sub search { . $locale->text('All') . qq|  | . $locale->text('Asset') . qq| -  | - . $locale->text('Contra') . qq|  | . $locale->text('Liability') . qq| -  | - . $locale->text('Equity') . qq|  | . $locale->text('Revenue') . qq|  | -- 2.20.1