From: Sven Schöling Date: Wed, 25 Jan 2012 12:41:10 +0000 (+0100) Subject: Merge branch 'master' of vc.linet-services.de:public/lx-office-erp X-Git-Tag: release-2.7.0beta1~17 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/e293009f4e1d70e547a479e956fd1733c24b1441?hp=71e8211613ad1bfb473f33588521d70c27be1de3 Merge branch 'master' of vc.linet-services.de:public/lx-office-erp --- diff --git a/SL/CVar.pm b/SL/CVar.pm index 1b83121bf..6d04f35a9 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -357,7 +357,7 @@ sub save_custom_variables { $sth->finish(); - $dbh->commit(); + $dbh->commit() unless $params{dbh}; $main::lxdebug->leave_sub(); } @@ -658,7 +658,7 @@ sub save_custom_variables_validity { $sth->finish(); - $dbh->commit(); + $dbh->commit() unless $params{dbh}; $main::lxdebug->leave_sub(); } @@ -721,7 +721,7 @@ sub format_to_template { # stupid template expects everything formated. except objects # do not use outside of print routines for legacy templates - return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number'; + return $::form->format_amount(\%::myconfig, $value) if $config->{type} eq 'number'; return $value->to_lxoffice if $config->{type} eq 'date' && blessed $value && $value->can('to_lxoffice'); return $value; } diff --git a/SL/GL.pm b/SL/GL.pm index e1cb7bc5b..f538bc359 100644 --- a/SL/GL.pm +++ b/SL/GL.pm @@ -720,7 +720,7 @@ sub storno { $storno_row->{storno} = 't'; $storno_row->{reference} = 'Storno-' . $storno_row->{reference}; - delete @$storno_row{qw(itime mtime)}; + delete @$storno_row{qw(itime mtime gldate)}; $query = sprintf 'INSERT INTO gl (%s) VALUES (%s)', join(', ', keys %$storno_row), join(', ', map '?', values %$storno_row); do_query($form, $dbh, $query, (values %$storno_row)); @@ -733,7 +733,7 @@ sub storno { my $rowref = selectall_hashref_query($form, $dbh, $query, $id); for my $row (@$rowref) { - delete @$row{qw(itime mtime acc_trans_id)}; + delete @$row{qw(itime mtime acc_trans_id gldate)}; $query = sprintf 'INSERT INTO acc_trans (%s) VALUES (%s)', join(', ', keys %$row), join(', ', map '?', values %$row); $row->{trans_id} = $new_id; $row->{amount} *= -1; diff --git a/SL/RP.pm b/SL/RP.pm index f98d47561..abf95beeb 100644 --- a/SL/RP.pm +++ b/SL/RP.pm @@ -211,6 +211,13 @@ sub get_accounts { $sth->finish; + # if l_ob is selected l_cb is always ignored + if ( $form->{l_ob} ) { + $where .= ' AND ob_transaction is true ' + } elsif ( not $form->{l_cb} ) { + $where .= ' AND cb_transaction is false '; + }; + if ($fromdate) { $fromdate = conv_dateq($fromdate); if ($form->{method} eq 'cash') { @@ -464,6 +471,8 @@ sub get_accounts_g { my $inwhere = ""; my $item; + $where .= ' AND cb_transaction is false ' unless $form->{l_cb}; + if ($fromdate) { $fromdate = conv_dateq($fromdate); if ($form->{method} eq 'cash') { diff --git a/locale/de/all b/locale/de/all index b10da890d..8b5a09482 100644 --- a/locale/de/all +++ b/locale/de/all @@ -311,6 +311,7 @@ $self->{texts} = { 'Businesses' => 'Kunden-/Lieferantentypen', 'CANCELED' => 'Storniert', 'CB Transaction' => 'SB-Buchung', + 'CB Transactions' => 'SB-Buchungen', 'CR' => 'H', 'CRM admin' => 'Administration', 'CRM create customers, vendors and contacts' => 'Erfassen (Kunden, Lieferanten, Personen)', @@ -2227,6 +2228,7 @@ $self->{texts} = { 'not yet executed' => 'Noch nicht ausgeführt', 'number' => 'Nummer', 'oe.pl::search called with unknown type' => 'oe.pl::search mit unbekanntem Typ aufgerufen', + 'only OB Transactions' => 'nur EB-Buchungen', 'open' => 'Offen', 'order' => 'Reihenfolge', 'our vendor number at customer' => 'Unsere Lieferanten-Nr. beim Kunden', diff --git a/templates/webpages/rp/report.html b/templates/webpages/rp/report.html index 934bf8912..6f9583ecd 100644 --- a/templates/webpages/rp/report.html +++ b/templates/webpages/rp/report.html @@ -60,7 +60,7 @@ [%- END %] [%- BLOCK cash_or_accrual %] - [% 'Method' | $T8 %] + [% 'Method' | $T8 %] [% L.radio_button_tag('method', value='accrual', checked=accrual, label=LxERP.t8('Accrual')) %] [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('EUR')) %] @@ -117,6 +117,10 @@ [%- PROCESS customized_report %] [%- PROCESS cash_or_accrual %] + + + + [%- END %] [%- IF is_bwa %] @@ -153,6 +157,11 @@  [% 'Subtotal' | $T8 %]  [% 'Account Number' | $T8 %] + + + + [%- END %] [%- IF is_trial_balance %]
[% 'Include in Report' | $T8 %] [% 'CB Transactions' | $T8 %]
 [% 'CB Transactions' | $T8 %] +  [% 'only OB Transactions' | $T8 %]