|
|
@ -129,6 +129,8 @@ namespace BBWY.Server.Business |
|
|
|
PurchaseOrderId = ods.PurchaseOrderId, |
|
|
|
PurchasePlatform = ods.PurchasePlatform, |
|
|
|
SellerAccount = ods.SellerAccount, |
|
|
|
OrderDropShippingSkuAmount = ods.SkuAmount, |
|
|
|
OrderDropShippingPurchaseFreight = ods.PurchaseFreight, |
|
|
|
}); |
|
|
|
var orderList = orderSourceList.Map<IList<OrderResponse>>(); |
|
|
|
|
|
|
@ -301,6 +303,8 @@ namespace BBWY.Server.Business |
|
|
|
PurchaseOrderId = ods.PurchaseOrderId, |
|
|
|
PurchasePlatform = ods.PurchasePlatform, |
|
|
|
SellerAccount = ods.SellerAccount, |
|
|
|
OrderDropShippingSkuAmount = ods.SkuAmount, |
|
|
|
OrderDropShippingPurchaseFreight = ods.PurchaseFreight, |
|
|
|
}); |
|
|
|
if (order == null) |
|
|
|
throw new BusinessException("订单不存在"); |
|
|
@ -686,7 +690,7 @@ namespace BBWY.Server.Business |
|
|
|
SkuId = x.SkuId, |
|
|
|
SingleConsumableAmount = 0, |
|
|
|
SingleFirstFreight = 0, |
|
|
|
SingleFreight = 0, |
|
|
|
SingleFreight = relationPurchaseOrderRequest.OrderDropShipping.PurchaseFreight / relationPurchaseOrderRequest.RelationPurchaseOrderSkuList.Count() / x.Quantity, |
|
|
|
SingleOperationAmount = 0, |
|
|
|
SingleStorageAmount = 0, |
|
|
|
SingleSkuAmount = x.SingleSkuAmount, |
|
|
@ -754,11 +758,11 @@ namespace BBWY.Server.Business |
|
|
|
OperationAmount = 0, |
|
|
|
OrderId = relationPurchaseOrderRequest.OrderDropShipping.OrderId, |
|
|
|
ProductId = x.ProductId, |
|
|
|
PurchaseFreight = 0, |
|
|
|
PurchaseFreight = relationPurchaseOrderRequest.OrderDropShipping.PurchaseFreight / relationPurchaseOrderRequest.RelationPurchaseOrderSkuList.Count(), |
|
|
|
SkuAmount = x.SingleSkuAmount * x.Quantity, |
|
|
|
SkuId = x.SkuId, |
|
|
|
StorageAmount = 0, |
|
|
|
TotalCost = x.SingleSkuAmount * x.Quantity, |
|
|
|
TotalCost = x.SingleSkuAmount * x.Quantity + relationPurchaseOrderRequest.OrderDropShipping.PurchaseFreight / relationPurchaseOrderRequest.RelationPurchaseOrderSkuList.Count(), |
|
|
|
UnitCost = x.SingleSkuAmount, |
|
|
|
PurchaseOrderPKId = insertPurchaseOrderList.FirstOrDefault(po => po.SkuId == x.SkuId).Id |
|
|
|
})); |
|
|
|