use C4::Context;
use C4::Acquisition;
use C4::Biblio;
-use C4::Bookseller;
use C4::Items;
use C4::Search;
-use Koha::Acquisition::Bookseller;
+use Koha::Number::Price;
+use Koha::Acquisition::Booksellers;
use List::MoreUtils qw/any/;
my $order = GetOrder($ordernumber);
my $new_ordernumber = $ordernumber;
-#need old recievedate if we update the order, parcel.pl only shows the right parcel this way FIXME
+$unitprice = Koha::Number::Price->new( $unitprice )->unformat();
+
+#need old receivedate if we update the order, parcel.pl only shows the right parcel this way FIXME
if ($quantityrec > $origquantityrec ) {
my @received_items = ();
if(C4::Context->preference('AcqCreateItem') eq 'ordering') {
$order->{tax_rate_on_receiving} = $input->param("tax_rate");
$order->{unitprice} = $unitprice;
- my $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid });
-
$order = C4::Acquisition::populate_order_with_prices(
{
order => $order,
{
booksellerid => $booksellerid,
dateaccessioned => $datereceived,
+ datelastseen => $datereceived,
price => $unitprice,
replacementprice => $order->{rrp},
replacementpricedate => $datereceived,