$where .= " AND a.transdate <= ?";
push(@values, $form->{transdateto});
}
+ if ($form->{duedatefrom}) {
+ $where .= " AND a.duedate >= ?";
+ push(@values, $form->{duedatefrom});
+ }
+ if ($form->{duedateto}) {
+ $where .= " AND a.duedate <= ?";
+ push(@values, $form->{duedateto});
+ }
if ($form->{open} || $form->{closed}) {
unless ($form->{open} && $form->{closed}) {
$where .= " AND a.amount <> a.paid" if ($form->{open});
push @columns, map { "cvar_$_->{name}" } @ct_includeable_custom_variables;
my @hidden_variables = map { "l_${_}" } @columns;
- push @hidden_variables, "l_subtotal", qw(open closed customer invnumber ordnumber cusordnumber transaction_description notes project_id transdatefrom transdateto employee_id salesman_id business_id);
+ push @hidden_variables, "l_subtotal", qw(open closed customer invnumber ordnumber cusordnumber transaction_description notes project_id transdatefrom transdateto duedatefrom duedateto employee_id salesman_id business_id);
push @hidden_variables, map { "cvar_$_->{name}" } @ct_searchable_custom_variables;
$href = build_std_url('action=ar_transactions', grep { $form->{$_} } @hidden_variables);
</tr>
[% END %]
<tr>
- <th align=right nowrap>[% 'From' | $T8 %]</th>
+ <th align=right nowrap>[% 'Invoice Date' | $T8 %]</th>
<td>
+ [% 'From' | $T8 %]
[% L.date_tag('transdatefrom') %]
</td>
<th align=right>[% 'Bis' | $T8 %]</th>
[% L.date_tag('transdateto') %]
</td>
</tr>
+ <tr>
+ <th align=right nowrap>[% 'Due Date' | $T8 %]</th>
+ <td>
+ [% 'From' | $T8 %]
+ [% L.date_tag('duedatefrom') %]
+ </td>
+ <th align=right>[% 'Bis' | $T8 %]</th>
+ <td>
+ [% L.date_tag('duedateto') %]
+ </td>
+ </tr>
[%- IF CT_CUSTOM_VARIABLES.size %]
<tr>