From 7899c54f80f80517b1893e55d2e94b01de2bf29e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 15 Nov 2022 12:22:31 +0000 Subject: [PATCH] Bug 15348: Store estimated delivery date when adding an order When the estimated delivery date was entered on adding or modifying and order, it was not saved to the database. To test: * Add new order, fill in estimated delivery date * Save * Verify the estimated delivery date is empty * Modify order line, date will also not be saved * Apply patch * The date should now save and update correctly --- acqui/addorder.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/addorder.pl b/acqui/addorder.pl index d0ac3cbe2f..147d168050 100755 --- a/acqui/addorder.pl +++ b/acqui/addorder.pl @@ -258,6 +258,7 @@ my $orderinfo = { sort1 => scalar $input->param('sort1'), sort2 => scalar $input->param('sort2'), subscriptionid => scalar $input->param('subscriptionid'), + estimated_delivery_date => scalar $input->param('estimated_delivery_date'), }; $orderinfo->{uncertainprice} ||= 0; @@ -335,7 +336,6 @@ if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) { } $orderinfo->{unitprice} = $orderinfo->{ecost} if not defined $orderinfo->{unitprice} or $orderinfo->{unitprice} eq ''; - $orderinfo->{estimated_delivery_date} = $orderinfo->{estimated_delivery_date} ? dt_from_string($orderinfo->{estimated_delivery_date}) : undef; my $order; my $log_action_name; -- 2.30.2