|
@ -1021,14 +1021,15 @@ namespace BBWY.Server.Business |
|
|
if (orderCost != null) |
|
|
if (orderCost != null) |
|
|
{ |
|
|
{ |
|
|
orderCost.PlatformCommissionRatio = relationPurchaseOrderRequestV2.PlatformCommissionRatio; |
|
|
orderCost.PlatformCommissionRatio = relationPurchaseOrderRequestV2.PlatformCommissionRatio; |
|
|
orderCost.PlatformCommissionAmount = dbOrder.OrderSellerPrice * relationPurchaseOrderRequestV2.PlatformCommissionRatio; |
|
|
//orderCost.PlatformCommissionAmount = dbOrder.OrderSellerPrice * relationPurchaseOrderRequestV2.PlatformCommissionRatio;
|
|
|
orderCost.DeliveryExpressFreight = totalDeliveryFreight; |
|
|
orderCost.DeliveryExpressFreight = totalDeliveryFreight; |
|
|
orderCost.PurchaseAmount = totalPurchaseAmount; |
|
|
orderCost.PurchaseAmount = totalPurchaseAmount; |
|
|
orderCost.Profit = dbOrder.OrderSellerPrice + |
|
|
orderCost.CalculationOrderProfitAndCost(dbOrder, null); |
|
|
dbOrder.FreightPrice - |
|
|
//orderCost.Profit = dbOrder.OrderSellerPrice +
|
|
|
orderCost.PurchaseAmount - |
|
|
// dbOrder.FreightPrice -
|
|
|
orderCost.DeliveryExpressFreight - |
|
|
// orderCost.PurchaseAmount -
|
|
|
orderCost.PlatformCommissionAmount; |
|
|
// orderCost.DeliveryExpressFreight -
|
|
|
|
|
|
// orderCost.PlatformCommissionAmount;
|
|
|
orderCost.IsEstimateCost = false; |
|
|
orderCost.IsEstimateCost = false; |
|
|
orderCost.IsManualEdited = true; |
|
|
orderCost.IsManualEdited = true; |
|
|
updateOrderCost = fsql.Update<OrderCost>().SetSource(orderCost).IgnoreColumns(oc => new |
|
|
updateOrderCost = fsql.Update<OrderCost>().SetSource(orderCost).IgnoreColumns(oc => new |
|
@ -1053,16 +1054,15 @@ namespace BBWY.Server.Business |
|
|
SDCommissionAmount = 0, |
|
|
SDCommissionAmount = 0, |
|
|
SDOrderAmount = 0, |
|
|
SDOrderAmount = 0, |
|
|
PurchaseAmount = totalPurchaseAmount, |
|
|
PurchaseAmount = totalPurchaseAmount, |
|
|
PlatformCommissionAmount = dbOrder.OrderSellerPrice * relationPurchaseOrderRequestV2.PlatformCommissionRatio, |
|
|
|
|
|
PreferentialAmount = preferentialAmount, |
|
|
PreferentialAmount = preferentialAmount, |
|
|
IsManualEdited = true |
|
|
IsManualEdited = true |
|
|
}; |
|
|
}; |
|
|
|
|
|
orderCost.CalculationOrderProfitAndCost(dbOrder, null); |
|
|
orderCost.Profit = dbOrder.OrderSellerPrice + |
|
|
//orderCost.Profit = dbOrder.OrderSellerPrice +
|
|
|
dbOrder.FreightPrice - |
|
|
// dbOrder.FreightPrice -
|
|
|
orderCost.PurchaseAmount - |
|
|
// orderCost.PurchaseAmount -
|
|
|
orderCost.DeliveryExpressFreight - |
|
|
// orderCost.DeliveryExpressFreight -
|
|
|
orderCost.PlatformCommissionAmount; |
|
|
// orderCost.PlatformCommissionAmount;
|
|
|
insertOrderCost = fsql.Insert(orderCost); |
|
|
insertOrderCost = fsql.Insert(orderCost); |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|