|
Lines 95-101
if ( $op eq 'add_form' ) {
Link Here
|
| 95 |
# TODO rewrite the following when Koha::Acquisition::Orders will use Koha::Objects |
95 |
# TODO rewrite the following when Koha::Acquisition::Orders will use Koha::Objects |
| 96 |
my $schema = Koha::Database->schema; |
96 |
my $schema = Koha::Database->schema; |
| 97 |
my $nb_of_orders = $schema->resultset('Aqorder')->search( { currency => $currency->currency } )->count; |
97 |
my $nb_of_orders = $schema->resultset('Aqorder')->search( { currency => $currency->currency } )->count; |
| 98 |
my $nb_of_vendors = Koha::Acquisition::Booksellers->search( { -or => { listprice => $currency->currency, invoiceprice => $currency->currency } }); |
98 |
my $nb_of_vendors = Koha::Acquisition::Booksellers->search( { -or => { listprice => $currency->currency, invoiceprice => $currency->currency } })->count; |
| 99 |
$template->param( |
99 |
$template->param( |
| 100 |
currency => $currency, |
100 |
currency => $currency, |
| 101 |
nb_of_orders => $nb_of_orders, |
101 |
nb_of_orders => $nb_of_orders, |
| 102 |
- |
|
|