|
Lines 78-90
else {
Link Here
|
| 78 |
$input->param('trange_t') ? $input->param('trange_t') |
78 |
$input->param('trange_t') ? $input->param('trange_t') |
| 79 |
: $last_cashup ? $last_cashup->timestamp |
79 |
: $last_cashup ? $last_cashup->timestamp |
| 80 |
: ''; |
80 |
: ''; |
| 81 |
$template->param( trange_t => $transactions_range_to ); |
81 |
my $end = dt_from_string($transactions_range_to); |
|
|
82 |
|
| 82 |
if ($transactions_range_from) { |
83 |
if ($transactions_range_from) { |
| 83 |
$template->param( trange_f => $transactions_range_from ); |
|
|
| 84 |
|
84 |
|
| 85 |
my $dtf = $schema->storage->datetime_parser; |
85 |
my $dtf = $schema->storage->datetime_parser; |
| 86 |
my $start = dt_from_string($transactions_range_from); |
86 |
my $start = dt_from_string($transactions_range_from); |
| 87 |
my $end = dt_from_string($transactions_range_to); |
|
|
| 88 |
my $past_accountlines = Koha::Account::Lines->search( |
87 |
my $past_accountlines = Koha::Account::Lines->search( |
| 89 |
{ |
88 |
{ |
| 90 |
register_id => $registerid, |
89 |
register_id => $registerid, |
|
Lines 97-103
else {
Link Here
|
| 97 |
} |
96 |
} |
| 98 |
); |
97 |
); |
| 99 |
$template->param( past_accountlines => $past_accountlines ); |
98 |
$template->param( past_accountlines => $past_accountlines ); |
|
|
99 |
$template->param( trange_f => output_pref({dt => $start, dateonly => 1})); |
| 100 |
} |
100 |
} |
|
|
101 |
$template->param( trange_t => output_pref({dt => $end, dateonly => 1})); |
| 101 |
|
102 |
|
| 102 |
my $op = $input->param('op') // ''; |
103 |
my $op = $input->param('op') // ''; |
| 103 |
if ( $op eq 'cashup' ) { |
104 |
if ( $op eq 'cashup' ) { |
| 104 |
- |
|
|