$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') {
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') {
'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)',
'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',
[%- END %]
[%- BLOCK cash_or_accrual %]
<tr>
- <th align=leftt>[% 'Method' | $T8 %]</th>
+ <th align=left>[% 'Method' | $T8 %]</th>
<td colspan=3>
[% 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')) %]
<table>
[%- PROCESS customized_report %]
[%- PROCESS cash_or_accrual %]
+ <tr>
+ <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
+ <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
+ </tr>
[%- END %]
[%- IF is_bwa %]
<input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]
<input name=l_accno class=checkbox type=checkbox value=Y> [% 'Account Number' | $T8 %]</td>
</tr>
+ <tr>
+ <th></th>
+ <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]
+ <input name=l_ob class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
+ </tr>
[%- END %]
[%- IF is_trial_balance %]