Date: Fri, 11 Nov 2005 09:05:34 +0000 (+0000)
Subject: Fixed Bug #187, UBL wenn als Kategorie nicht "alle" ausgewaehlt wird
X-Git-Tag: release-2.4.0^2~469
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e05a0e27d203b55a5d7bba31d6467ba86fbe92c0;p=kivitendo-erp.git
Fixed Bug #187, UBL wenn als Kategorie nicht "alle" ausgewaehlt wird
---
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|
|