diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm index 38bb24186b..c99e39f414 100644 --- a/C4/Acquisition.pm +++ b/C4/Acquisition.pm @@ -1396,8 +1396,8 @@ sub ModItemOrder { user => $user, invoice => $invoice, budget_id => $budget_id, + datereceived => $datereceived, received_itemnumbers => \@received_itemnumbers, - order_internalnote => $order_internalnote, } ); @@ -1420,10 +1420,18 @@ sub ModReceiveOrder { my $quantrec = $params->{quantityreceived}; my $user = $params->{user}; my $budget_id = $params->{budget_id}; + my $datereceived = $params->{datereceived}; my $received_items = $params->{received_items}; my $dbh = C4::Context->dbh; - my $datereceived = ( $invoice and $invoice->{datereceived} ) ? $invoice->{datereceived} : dt_from_string; + $datereceived = output_pref( + { + dt => ( $datereceived ? dt_from_string( $datereceived ) : dt_from_string ), + dateformat => 'iso', + dateonly => 1, + } + ); + my $suggestionid = GetSuggestionFromBiblionumber( $biblionumber ); if ($suggestionid) { ModSuggestion( {suggestionid=>$suggestionid, diff --git a/acqui/finishreceive.pl b/acqui/finishreceive.pl index 90faed39e2..dac84613c9 100755 --- a/acqui/finishreceive.pl +++ b/acqui/finishreceive.pl @@ -123,6 +123,7 @@ if ($quantityrec > $origquantityrec ) { user => $user, invoice => $invoice, budget_id => $bookfund, + datereceived => $datereceived, received_items => \@received_items, } );