|
|
@ -96,6 +96,8 @@ namespace BBWYB.Server.Business |
|
|
|
var productAmount = 0M; |
|
|
|
var totalAmount = 0M; |
|
|
|
|
|
|
|
var previewAmountGroupByPurchaserList = new List<PreviewAmountGroupByPurchaser>(); |
|
|
|
|
|
|
|
foreach (var cargoParamGroup in request.CargoParamGroupList) |
|
|
|
{ |
|
|
|
var purchaseAccount = request.PurchaseAccountList.FirstOrDefault(pa => pa.PurchasePlatformId == cargoParamGroup.PurchasePlatform); |
|
|
@ -133,6 +135,16 @@ namespace BBWYB.Server.Business |
|
|
|
freightAmount += response.FreightAmount; |
|
|
|
productAmount += response.ProductAmount; |
|
|
|
totalAmount += response.TotalAmount; |
|
|
|
|
|
|
|
previewAmountGroupByPurchaserList.Add(new PreviewAmountGroupByPurchaser() |
|
|
|
{ |
|
|
|
FreightAmount = response.FreightAmount, |
|
|
|
ProductAmount = response.ProductAmount, |
|
|
|
TotalAmount = response.TotalAmount, |
|
|
|
PurchasePlatform = cargoParamGroup.PurchasePlatform, |
|
|
|
PurchaserId = cargoParamGroup.PurchaserId, |
|
|
|
PurchaserName = cargoParamGroup.PurchaserName |
|
|
|
}); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
@ -147,7 +159,8 @@ namespace BBWYB.Server.Business |
|
|
|
Extensions = JsonConvert.SerializeObject(extJArray), |
|
|
|
FreightAmount = freightAmount, |
|
|
|
ProductAmount = productAmount, |
|
|
|
TotalAmount = totalAmount |
|
|
|
TotalAmount = totalAmount, |
|
|
|
PreviewAmountGroupByPurchaserList = previewAmountGroupByPurchaserList |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
@ -428,7 +441,7 @@ namespace BBWYB.Server.Business |
|
|
|
PurchasePlatform = purchaseOrder.PurchasePlatform.Value, |
|
|
|
PurchaserId = purchaseOrder.PurchaserId, |
|
|
|
PurchaserName = purchaseOrder.PurchaserName, |
|
|
|
PurchaserOrderId = purchaseOrder.PurchaseOrderId, |
|
|
|
PurchaseOrderId = purchaseOrder.PurchaseOrderId, |
|
|
|
IsEnabled = purchaseOrder.IsEnabled, |
|
|
|
PurchaseMethod = purchaseOrder.PurchaseMethod.Value |
|
|
|
}; |
|
|
|