Skip to content

Commit

Permalink
Backed out prior order ship date fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rdrrichards committed Dec 28, 2016
1 parent 33e6306 commit 3bd4347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QIQO.Business.Engines/Engines/OrderBusinessEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public int OrderSave(Order order_header)

order_data.OrderItemCount = order_header.OrderItems.Sum(item => item.OrderItemQuantity);
order_data.OrderValueSum = order_header.OrderItems.Sum(item => item.OrderItemLineSum);
order_data.OrderShipDate = order_header.OrderItems.Min(item => item.OrderItemShipDate).GetValueOrDefault();
//order_data.OrderShipDate = order_header.OrderItems.Min(item => item.OrderItemShipDate).GetValueOrDefault();
order_header_key = _order_header_repo.Save(order_data);

Log.Info($"Order Item start [{order_header.OrderItems.Count}] items to process");
Expand Down

1 comment on commit 3bd4347

@rdrrichards
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are handling this in the stored procedure. This method was sending an invalid date to the procedure when there was no date in the details.

Please sign in to comment.