|
Lines 287-303
sub GetBasketAsCSV {
Link Here
|
| 287 |
|
287 |
|
| 288 |
my @rows; |
288 |
my @rows; |
| 289 |
foreach my $order (@orders) { |
289 |
foreach my $order (@orders) { |
| 290 |
my $bd = GetBiblioData( $order->{'biblionumber'} ); |
290 |
my $biblio = Koha::Biblios->find( $order->{biblionumber} ); |
|
|
291 |
my $biblioitem = $biblio->biblioitem; |
| 291 |
my $row = { |
292 |
my $row = { |
| 292 |
contractname => $contract->{'contractname'}, |
293 |
contractname => $contract->{'contractname'}, |
| 293 |
ordernumber => $order->{'ordernumber'}, |
294 |
ordernumber => $order->{'ordernumber'}, |
| 294 |
entrydate => $order->{'entrydate'}, |
295 |
entrydate => $order->{'entrydate'}, |
| 295 |
isbn => $order->{'isbn'}, |
296 |
isbn => $order->{'isbn'}, |
| 296 |
author => $bd->{'author'}, |
297 |
author => $biblio->author, |
| 297 |
title => $bd->{'title'}, |
298 |
title => $biblio->title, |
| 298 |
publicationyear => $bd->{'publicationyear'}, |
299 |
publicationyear => $biblioitem->publicationyear, |
| 299 |
publishercode => $bd->{'publishercode'}, |
300 |
publishercode => $biblioitem->publishercode, |
| 300 |
collectiontitle => $bd->{'collectiontitle'}, |
301 |
collectiontitle => $biblioitem->collectiontitle, |
| 301 |
notes => $order->{'order_vendornote'}, |
302 |
notes => $order->{'order_vendornote'}, |
| 302 |
quantity => $order->{'quantity'}, |
303 |
quantity => $order->{'quantity'}, |
| 303 |
rrp => $order->{'rrp'}, |
304 |
rrp => $order->{'rrp'}, |
|
Lines 355-370
sub GetBasketGroupAsCSV {
Link Here
|
| 355 |
my $basketgroup = GetBasketgroup( $$basket{basketgroupid} ); |
356 |
my $basketgroup = GetBasketgroup( $$basket{basketgroupid} ); |
| 356 |
|
357 |
|
| 357 |
foreach my $order (@orders) { |
358 |
foreach my $order (@orders) { |
| 358 |
my $bd = GetBiblioData( $order->{'biblionumber'} ); |
359 |
my $biblio = Koha::Biblios->find( $order->{biblionumber} ); |
|
|
360 |
my $biblioitem = $biblio->biblioitem; |
| 359 |
my $row = { |
361 |
my $row = { |
| 360 |
clientnumber => $bookseller->accountnumber, |
362 |
clientnumber => $bookseller->accountnumber, |
| 361 |
basketname => $basket->{basketname}, |
363 |
basketname => $basket->{basketname}, |
| 362 |
ordernumber => $order->{ordernumber}, |
364 |
ordernumber => $order->{ordernumber}, |
| 363 |
author => $bd->{author}, |
365 |
author => $biblio->author, |
| 364 |
title => $bd->{title}, |
366 |
title => $biblio->title, |
| 365 |
publishercode => $bd->{publishercode}, |
367 |
publishercode => $biblioitem->publishercode, |
| 366 |
publicationyear => $bd->{publicationyear}, |
368 |
publicationyear => $biblioitem->publicationyear, |
| 367 |
collectiontitle => $bd->{collectiontitle}, |
369 |
collectiontitle => $biblioitem->collectiontitle, |
| 368 |
isbn => $order->{isbn}, |
370 |
isbn => $order->{isbn}, |
| 369 |
quantity => $order->{quantity}, |
371 |
quantity => $order->{quantity}, |
| 370 |
rrp_tax_included => $order->{rrp_tax_included}, |
372 |
rrp_tax_included => $order->{rrp_tax_included}, |