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