my $close = $input->param('close');
my $data;
my $new;
-my $dbh = C4::Context->dbh;
if ( $ordnum eq '' ) { # create order
$new = 'yes';
-default => ($data->{'bookfundid'} ? $data->{'bookfundid'} : $select_bookfund[0]),
-labels => \%select_bookfunds,
#-size => 1,
- -tabindex =>'',
-multiple => 0
);
nocalc => $bookseller->{'nocalc'},
name => $bookseller->{'name'},
currency => $bookseller->{'listprice'},
- gstrate => C4::Context->preference("gist"),
+ gstrate => C4::Context->preference("gist") || 0,
loop_currencies => \@loop_currency,
orderexists => ( $new eq 'yes' ) ? 0 : 1,
title => $data->{'title'},