Lines 58-73
my $order = Koha::Acquisition::Order->new({
Link Here
|
58 |
entrydate => '2016-01-02', |
58 |
entrydate => '2016-01-02', |
59 |
})->store; |
59 |
})->store; |
60 |
|
60 |
|
61 |
my $basketgroup_csv1 = C4::Acquisition::GetBasketGroupAsCSV($basketgroupid, $query); |
61 |
my $basketgroup_csv1 = C4::Acquisition::GetBasketGroupAsCSV( $basketgroupid, $query ); |
62 |
is($basketgroup_csv1, 'Account number,Basket name,Order number,Author,Title,Publisher,Publication year,Collection title,ISBN,Quantity,RRP tax included,RRP tax excluded,Discount,Estimated cost tax included,Estimated cost tax excluded,Note for vendor,Entry date,Bookseller name,Bookseller physical address,Bookseller postal address,Contract number,Contract name,Basket group delivery place,Basket group billing place,Basket delivery place,Basket billing place |
62 |
is( |
63 |
,"",' . $order->ordernumber . ',"King, Stephen","Test Record","",,"",,3,0.00,0.00,,0.00,0.00,"",2016-01-02,"my vendor","vendor address","",,"","","","","" |
63 |
$basketgroup_csv1, |
64 |
', 'CSV should be generated'); |
64 |
'"Account number","Basket name","Order number","Author","Title","Publisher","Publication year","Collection title","ISBN","Quantity","RRP tax included","RRP tax excluded","Discount","Estimated cost tax included","Estimated cost tax excluded","Note for vendor","Entry date","Bookseller name","Bookseller physical address","Bookseller postal address","Contract number","Contract name","Basket group delivery place","Basket group billing place","Basket delivery place","Basket billing place" |
|
|
65 |
,"",' |
66 |
. $order->ordernumber |
67 |
. ',"King, Stephen","Test Record","",,"",,3,0.00,0.00,,0.00,0.00,"",2016-01-02,"my vendor","vendor address","",,"","","","","" |
68 |
', 'CSV should be generated' |
69 |
); |
65 |
|
70 |
|
66 |
Koha::Biblios->find($biblionumber)->delete; |
71 |
Koha::Biblios->find($biblionumber)->delete; |
67 |
my $basketgroup_csv2 = C4::Acquisition::GetBasketGroupAsCSV($basketgroupid, $query); |
72 |
my $basketgroup_csv2 = C4::Acquisition::GetBasketGroupAsCSV( $basketgroupid, $query ); |
68 |
is($basketgroup_csv2, 'Account number,Basket name,Order number,Author,Title,Publisher,Publication year,Collection title,ISBN,Quantity,RRP tax included,RRP tax excluded,Discount,Estimated cost tax included,Estimated cost tax excluded,Note for vendor,Entry date,Bookseller name,Bookseller physical address,Bookseller postal address,Contract number,Contract name,Basket group delivery place,Basket group billing place,Basket delivery place,Basket billing place |
73 |
is( |
69 |
,"",' . $order->ordernumber . ',"","","",,"",,3,0.00,0.00,,0.00,0.00,"",2016-01-02,"my vendor","vendor address","",,"","","","","" |
74 |
$basketgroup_csv2, |
70 |
', 'CSV should not fail if biblio does not exist'); |
75 |
'"Account number","Basket name","Order number","Author","Title","Publisher","Publication year","Collection title","ISBN","Quantity","RRP tax included","RRP tax excluded","Discount","Estimated cost tax included","Estimated cost tax excluded","Note for vendor","Entry date","Bookseller name","Bookseller physical address","Bookseller postal address","Contract number","Contract name","Basket group delivery place","Basket group billing place","Basket delivery place","Basket billing place" |
71 |
|
76 |
,"",' |
|
|
77 |
. $order->ordernumber |
78 |
. ',"","","",,"",,3,0.00,0.00,,0.00,0.00,"",2016-01-02,"my vendor","vendor address","",,"","","","","" |
79 |
', 'CSV should not fail if biblio does not exist' |
80 |
); |
72 |
|
81 |
|
73 |
$schema->storage->txn_rollback(); |
82 |
$schema->storage->txn_rollback(); |
74 |
- |
|
|