$project = qq| AND ac.project_id = ? |;
@project_values = (conv_i($form->{project_id}));
}
- my $acc_cash_where = "";
- my $ar_cash_where = "";
- my $ap_cash_where = "";
-
-
- if ($form->{method} eq "cash") {
- $where = qq| (ac.trans_id IN (SELECT id FROM ar WHERE datepaid>= ? AND datepaid<= ? UNION SELECT id FROM ap WHERE datepaid>= ? AND datepaid<= ? UNION SELECT id FROM gl WHERE transdate>= ? AND transdate<= ?)) |;
- @where_values = ();
- push(@where_values, conv_date($form->{fromdate}));
- push(@where_values, conv_date($form->{todate}));
- push(@where_values, conv_date($form->{fromdate}));
- push(@where_values, conv_date($form->{todate}));
- push(@where_values, conv_date($form->{fromdate}));
- push(@where_values, conv_date($form->{todate}));
- }
-
if ($form->{accno}) {
$::form->header;
print $::form->parse_html_template('ca/list', {
year => DateTime->today->year,
- cash => $::instance_conf->get_accounting_method eq 'cash',
});
$::lxdebug->leave_sub;
[% L.hidden_tag('accno', accno) %]
[% L.hidden_tag('decription', description) %]
[% L.hidden_tag('sort', 'transdate') %]
-[% L.hidden_tag('eur', cash) %]
[% L.hidden_tag('accounttype', accounttype) %]
<table border=0 width=100%>
<tr>
<td colspan=5><hr size=3 noshade></td>
</tr>
- <tr>
- <th align=leftt>[% 'Method' | $T8 %]</th>
- <td colspan=3>[% L.radio_button_tag('method', value='accrual', checked=!cash, label=LxERP.t8('Accrual')) %]
- [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('EUR')) %]</td>
- </tr>
<tr>
<th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
<td><input name=decimalplaces size=3 value="2"></td>
<br>[% L.submit_tag('action', LxERP.t8('List Transactions')) %]
</form>
-