- $csv->combine(
- $order->{orderdate} . " (" . $order->{latesince} . " days)",
- $order->{estimateddeliverydate},
- $order->{supplier} . " (" . $order->{supplierid} . ") ",
- $order->{title} . ( $order->{author} ? " Author: $order->{author}" : "" ) . ( $order->{publisher} ? " Published by: $order->{publisher}" : "" ),
- $order->{unitpricesupplier} . "x" . $order->{quantity_to_receive} . " = " . $order->{subtotal} . " (" . $order->{budget} . ")",
- $order->{basketname} . " (" . $order->{basketno} . ")",
- $order->{claims_count},
- $order->{claimed_date}
- );
- my $string = $csv->string;
- print $string, "\n";
+ push @orders, {
+ orderdate => $order->{orderdate},
+ latesince => $order->{latesince},
+ estimateddeliverydate => $order->{estimateddeliverydate},
+ supplier => $order->{supplier},
+ supplierid => $order->{supplierid},
+ title => $order->{title},
+ author => $order->{author},
+ publisher => $order->{publisher},
+ unitpricesupplier => $order->{unitpricesupplier},
+ quantity_to_receive => $order->{quantity_to_receive},
+ subtotal => $order->{subtotal},
+ budget => $order->{budget},
+ basketname => $order->{basketname},
+ basketno => $order->{basketno},
+ claims_count => $order->{claims_count},
+ claimed_date => $order->{claimed_date},
+ }
+ ;