MT 2426 : Default currency is chosen for price calculation when bookseller's listpric...
[koha_gimpoz] / acqui / parcels.pl
index 29d1cf2..0c573bf 100755 (executable)
@@ -2,10 +2,10 @@
 
 
 #script to show display basket of orders
-#written by chris@katipo.co.nz 24/2/2000
 
 
 # Copyright 2000-2002 Katipo Communications
+# Copyright 2008-2009 BibLibre SARL
 #
 # This file is part of Koha.
 #
@@ -84,7 +84,7 @@ my ($template, $loggedinuser, $cookie)
                  query => $input,
                  type => "intranet",
                  authnotrequired => 0,
-                 flagsrequired => {acquisition => 1},
+                 flagsrequired => {acquisition => 'order_receive'},
                  debug => 1,
 });
 
@@ -133,7 +133,6 @@ if ($count>$resultsperpage){
 }
 my @loopres;
 
-my $hilighted=0;
 for (my $i=$startfrom;$i<=($startfrom+$resultsperpage-1<$count-1?$startfrom+$resultsperpage-1:$count-1);$i++){
 
     my %cell;
@@ -146,8 +145,6 @@ for (my $i=$startfrom;$i<=($startfrom+$resultsperpage-1<$count-1?$startfrom+$res
     $cell{bibcount}=$results[$i]->{biblio};
     $cell{reccount}=$results[$i]->{itemsreceived};
     $cell{itemcount}=$results[$i]->{itemsexpected};
-    $cell{hilighted} = $hilighted%2;
-    $hilighted++;
     push @loopres, \%cell;
 }
 $template->param(searchresults=>\@loopres, count=>$count) if ($count);
@@ -155,6 +152,7 @@ $template->param(orderby=>$order, filter=>$code, datefrom=>$datefrom,dateto=>$da
 $template->param(
         name => $bookseller->{'name'},
         DHTMLcalendar_dateformat => C4::Dates->DHTMLcalendar(),
+               datereceived_today => C4::Dates->new()->output(),
                supplierid => $supplierid,
            GST => C4::Context->preference("gist"),
         );