- discount => $booksellers[0]->{'discount'},
- listincgst => $booksellers[0]->{'listincgst'},
- listprice => $booksellers[0]->{'listprice'},
- gstreg => $booksellers[0]->{'gstreg'},
- invoiceinc => $booksellers[0]->{'invoiceincgst'},
- invoicedisc => $booksellers[0]->{'invoicedisc'},
- nocalc => $booksellers[0]->{'nocalc'},
- name => $booksellers[0]->{'name'},
- currency => $booksellers[0]->{'listprice'},
- gstrate => C4::Context->preference("gist"),
+ itemtype_desc => $itemtypes->{$data->{'itemtype'}}->{description},
+ discount => $bookseller->{'discount'},
+ listincgst => $bookseller->{'listincgst'},
+ listprice => $bookseller->{'listprice'},
+ gstreg => $bookseller->{'gstreg'},
+ invoiceinc => $bookseller->{'invoiceincgst'},
+ invoicedisc => $bookseller->{'invoicedisc'},
+ nocalc => $bookseller->{'nocalc'},
+ name => $bookseller->{'name'},
+ currency => $bookseller->{'listprice'},
+ gstrate => C4::Context->preference("gist") || 0,