From: G. Richardson Date: Mon, 6 Feb 2012 14:33:38 +0000 (+0100) Subject: Bug 1797 - cb_transaction nicht eindeutig bei GuV X-Git-Tag: release-2.7.0beta1~10^2~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e251cbec4a7f15621de1a04408fc8fbf009752b9;p=kivitendo-erp.git Bug 1797 - cb_transaction nicht eindeutig bei GuV cb_transaction kommt auch in Tabelle gl vor, wird aber für die Auswertung nicht benötigt --- diff --git a/SL/RP.pm b/SL/RP.pm index abf95beeb..d37191284 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -213,9 +213,9 @@ sub get_accounts { # if l_ob is selected l_cb is always ignored if ( $form->{l_ob} ) { - $where .= ' AND ob_transaction is true ' + $where .= ' AND ac.ob_transaction is true ' } elsif ( not $form->{l_cb} ) { - $where .= ' AND cb_transaction is false '; + $where .= ' AND ac.cb_transaction is false '; }; if ($fromdate) { @@ -471,7 +471,7 @@ sub get_accounts_g { my $inwhere = ""; my $item; - $where .= ' AND cb_transaction is false ' unless $form->{l_cb}; + $where .= ' AND ac.cb_transaction is false ' unless $form->{l_cb}; if ($fromdate) { $fromdate = conv_dateq($fromdate);