|
|
@ -596,17 +596,6 @@ namespace BBWY.Server.Business |
|
|
|
SkuAmount = purchaseOrder.SingleSkuAmount * deductionQuantity, |
|
|
|
StorageAmount = purchaseOrder.SingleStorageAmount * deductionQuantity |
|
|
|
}; |
|
|
|
//orderCostDetail.SkuGrossProfit = orderSku.Price.Value * deductionQuantity - avgPreferential - (orderCostDetail.TotalCost + orderCostDetail.DeliveryExpressFreight) - orderSku.Price.Value * deductionQuantity * autoCalculationCostRequest.PlatformCommissionRatio;
|
|
|
|
|
|
|
|
|
|
|
|
//var shouldPay = orderSku.ShouldPay ?? 0M;
|
|
|
|
//var pingTaiCoupon = orderSku.PingTaiChengDanYouHuiQuan ?? 0M;
|
|
|
|
//var venderFee = orderSku.VenderFee ?? 0M;
|
|
|
|
|
|
|
|
//var koudian = (shouldPay - venderFee) * deductionQuantity * autoCalculationCostRequest.PlatformCommissionRatio;
|
|
|
|
//orderCostDetail.SkuGrossProfit = (shouldPay + pingTaiCoupon) * deductionQuantity -
|
|
|
|
// orderCostDetail.TotalCost - orderCostDetail.DeliveryExpressFreight -
|
|
|
|
// koudian;
|
|
|
|
|
|
|
|
orderCostDetail.CalculationSkuGrossProfit(orderSku.ShouldPay ?? 0M, |
|
|
|
orderSku.PingTaiChengDanYouHuiQuan ?? 0M, |
|
|
@ -642,7 +631,12 @@ namespace BBWY.Server.Business |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
orderCost.IsEstimateCost = false; |
|
|
|
if (orderCost.IsEstimateCost == true) |
|
|
|
{ |
|
|
|
orderCost.IsEstimateCost = false; |
|
|
|
orderCost.PurchaseAmount = 0M; |
|
|
|
orderCost.DeliveryExpressFreight = 0M; |
|
|
|
} |
|
|
|
orderCost.PurchaseAmount += orderCostPurchaseAmount; |
|
|
|
orderCost.DeliveryExpressFreight += orderDeliveryExpressFreight; |
|
|
|
orderCost.CalculationOrderProfitAndCost(dbOrder, dbAfterSaleOrderList); |
|
|
|