- title => $results[0]->{'title'},
- author => $results[0]->{'author'},
- copyrightdate => $results[0]->{'copyrightdate'},
- itemtype => $results[0]->{'itemtype'},
- isbn => $results[0]->{'isbn'},
- seriestitle => $results[0]->{'seriestitle'},
- barcode => $barcode,
- bookfund => $results[0]->{'bookfundid'},
- quantity => $results[0]->{'quantity'},
- quantityreceivedplus1 => $results[0]->{'quantityreceived'} + 1,
- quantityreceived => $results[0]->{'quantityreceived'},
- rrp => $results[0]->{'rrp'},
- ecost => $results[0]->{'ecost'},
- unitprice => $results[0]->{'unitprice'},
+ title => @$results[0]->{'title'},
+ author => @$results[0]->{'author'},
+ copyrightdate => @$results[0]->{'copyrightdate'},
+ isbn => @$results[0]->{'isbn'},
+ seriestitle => @$results[0]->{'seriestitle'},
+ bookfund => $budget->{budget_name},
+ quantity => @$results[0]->{'quantity'},
+ quantityreceivedplus1 => @$results[0]->{'quantityreceived'} + 1,
+ quantityreceived => @$results[0]->{'quantityreceived'},
+ rrp => @$results[0]->{'rrp'},
+ ecost => @$results[0]->{'ecost'},
+ unitprice => @$results[0]->{'unitprice'},
+ memberfirstname => $member->{firstname} || "",
+ membersurname => $member->{surname} || "",