if ($form->{fromdate}) {
$query = qq|SELECT sum(a.amount),
(SELECT DISTINCT c2.category FROM chart c2
- WHERE c2accno = '$form->{accno}') AS category
+ WHERE c2.accno = '$form->{accno}') AS category
FROM acc_trans a
JOIN chart c ON (c.id = a.chart_id)
WHERE a.transdate < date '$form->{fromdate}'
$option .= "\n<br>" if ($option);
$option .=
$locale->text('From') . " "
- . $locale->date(\%myconfig, $form->{fromdate}, 1);
+ . $locale->date(\%myconfig, $form->{fromdate}, 0);
}
if ($form->{todate}) {
$option .= "\n<br>" if ($option);
$option .=
- $locale->text('To') . " "
- . $locale->date(\%myconfig, $form->{todate}, 1);
+ $locale->text('Bis') . " "
+ . $locale->date(\%myconfig, $form->{todate}, 0);
}
$form->{title} = "$form->{accno}--$form->{account}";