private bool SettleCustomerOrderPayment(string orderNumber) { var customerOrderV01 = CustomerOrderingProvider.GetCustomerOrderByOrderID(ShoppingCart.CustomerOrderDetail.CustomerOrderID); bool orderIDUpdate = CustomerOrderingProvider.UpdateCustomerOrderDistributorOrderID(customerOrderV01.OrderID, orderNumber); bool orderStatusUpdate = CustomerOrderingProvider.UpdateCustomerOrderStatus(customerOrderV01.OrderID, customerOrderV01.OrderStatus, ServiceProvider.CustomerOrderSvc.CustomerOrderStatusType.ShippedAsDo); return(orderIDUpdate && orderStatusUpdate); }
private void SettleCustomerOrderPayment(string orderNumber) { var locale = CultureInfo.CurrentCulture.Name; var shoppingCart = this._sessionInfo.ShoppingCart ?? ShoppingCartProvider.GetShoppingCart(DistributorID, locale); if (shoppingCart != null && shoppingCart.CustomerOrderDetail != null) { var customerOrderV01 = CustomerOrderingProvider.GetCustomerOrderByOrderID(shoppingCart.CustomerOrderDetail.CustomerOrderID); CustomerOrderingProvider.UpdateCustomerOrderDistributorOrderID(customerOrderV01.OrderID, orderNumber); CustomerOrderingProvider.UpdateCustomerOrderStatus(customerOrderV01.OrderID, customerOrderV01.OrderStatus, ServiceProvider.CustomerOrderSvc.CustomerOrderStatusType.ShippedAsDo); } }
private void SettleCustomerOrderPayment(MyHLShoppingCart shoppingCart, string distributorOrderId) { if (shoppingCart != null && shoppingCart.CustomerOrderDetail != null && !string.IsNullOrEmpty(shoppingCart.CustomerOrderDetail.CustomerOrderID)) { var customerOrderV01 = CustomerOrderingProvider.GetCustomerOrderByOrderID(shoppingCart.CustomerOrderDetail.CustomerOrderID); CustomerOrderingProvider.UpdateCustomerOrderDistributorOrderID(customerOrderV01.OrderID, distributorOrderId); CustomerOrderingProvider.UpdateCustomerOrderStatus(customerOrderV01.OrderID, customerOrderV01.OrderStatus, ServiceProvider.CustomerOrderSvc.CustomerOrderStatusType.ShippedAsDo); } }