parcel.pl
=head1 DESCRIPTION
+
This script shows all orders receipt or pending for a given supplier.
It allows to write an order as 'received' when he arrives.
=over 4
=item supplierid
+
To know the supplier this script has to show orders.
=item code
+
is the bookseller invoice number.
=item freight
=item datereceived
+
To filter the results list on this given date.
=back
use C4::Auth;
use C4::Acquisition;
use C4::Budgets;
-use C4::Bookseller;
+use C4::Bookseller qw/ GetBookSellerFromId /;
use C4::Biblio;
use C4::Items;
use CGI;
my $invoice=$input->param('invoice') || '';
my $freight=$input->param('freight');
-my $gst= $input->param('gst') || $bookseller->{gstrate} || C4::Context->preference("gist") || 0;
+my $input_gst = ($input->param('gst') eq '' ? undef : $input->param('gst'));
+my $gst= $input_gst // $bookseller->{gstrate} // C4::Context->preference("gist") // 0;
my $datereceived = ($input->param('op') eq 'new') ? C4::Dates->new($input->param('datereceived'))
: C4::Dates->new($input->param('datereceived'), 'iso') ;
$datereceived = C4::Dates->new() unless $datereceived;
$data->{ordernumber} = $order->{ordernumber};
$data->{title} = $order->{title};
$data->{author} = $order->{author};
+ $data->{isbn} = $order->{isbn};
+ $data->{booksellerid} = $order->{booksellerid};
$data->{biblionumber} = $order->{biblionumber};
$data->{freight} = $order->{freight};
$data->{quantity} = $order->{quantity};
}
if ($error_delitem || $error_delbiblio) {
- warn $error_delitem;
- warn $error_delbiblio;
if ($error_delitem) { $template->param(error_delitem => 1); }
if ($error_delbiblio) { $template->param(error_delbiblio => 1); }
} else {
resultsperpage => $resultsperpage,
);
output_html_with_http_headers $input, $cookie, $template->output;
+