|
Lines 161-166
my @parcels = GetInvoices(
Link Here
|
| 161 |
); |
161 |
); |
| 162 |
my $count_parcels = @parcels; |
162 |
my $count_parcels = @parcels; |
| 163 |
|
163 |
|
|
|
164 |
unless ($include_closed) { |
| 165 |
|
| 166 |
# FIXME Implement and use Koha::Acquisition::Bookseller->invoices; |
| 167 |
my $closed_invoices = Koha::Acquisition::Invoices->search( |
| 168 |
{ |
| 169 |
booksellerid => $booksellerid, |
| 170 |
( $datefrom ? ( shipmentdatefrom => $datefrom ) : () ), |
| 171 |
( $dateto ? ( shipmentdateto => $dateto ) : () ), |
| 172 |
closedate => { '!=' => undef }, |
| 173 |
} |
| 174 |
); |
| 175 |
$template->param( closed_invoices => $closed_invoices->count ); |
| 176 |
} |
| 177 |
|
| 164 |
# multi page display gestion |
178 |
# multi page display gestion |
| 165 |
$startfrom ||= 0; |
179 |
$startfrom ||= 0; |
| 166 |
if ( $count_parcels > $resultsperpage ) { |
180 |
if ( $count_parcels > $resultsperpage ) { |