|
|
|
@ -93,7 +93,7 @@ namespace DS.WMS.Core.Settlement.Method
|
|
|
|
|
OriginalAmount = x.OriginalAmount,
|
|
|
|
|
OriginalCurrency = x.OriginalCurrency ?? (settlement.Currency.IsNullOrEmpty() ? x.Currency : settlement.Currency),
|
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//按付费/发票申请/自由业务结算
|
|
|
|
@ -195,7 +195,7 @@ namespace DS.WMS.Core.Settlement.Method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//按业务自由结算
|
|
|
|
|
else if (settlement.Mode == SettlementMode.FreeSettlement)
|
|
|
|
|
else if (settlement.Mode == SettlementMode.FreeSettlement)
|
|
|
|
|
{
|
|
|
|
|
var types = request.Documents.Select(x => x.BusinessType.GetValueOrDefault());
|
|
|
|
|
var custIds = request.Documents.Select(x => x.CustomerId);
|
|
|
|
@ -204,7 +204,8 @@ namespace DS.WMS.Core.Settlement.Method
|
|
|
|
|
.Select(f => new ApplicationDetail
|
|
|
|
|
{
|
|
|
|
|
ApplicationId = settlement.Id,
|
|
|
|
|
RefId = f.BusinessId,
|
|
|
|
|
BusinessId = f.BusinessId,
|
|
|
|
|
BusinessType = f.BusinessType,
|
|
|
|
|
RecordId = f.Id,
|
|
|
|
|
Category = f.FeeType == FeeType.Payable ? DetailCategory.PaidFreeSettlement : DetailCategory.ChargeFreeSettlement,
|
|
|
|
|
CustomerName = f.CustomerName ?? settlement.CustomerName,
|
|
|
|
@ -225,7 +226,7 @@ namespace DS.WMS.Core.Settlement.Method
|
|
|
|
|
{
|
|
|
|
|
detail.Currency = settlement.Currency;
|
|
|
|
|
|
|
|
|
|
var doc = request.Documents.Find(x => x.Id == detail.RefId);
|
|
|
|
|
var doc = request.Documents.Find(x => x.Id == detail.BusinessId && x.BusinessType == detail.BusinessType && x.CustomerName == x.CustomerName);
|
|
|
|
|
if (doc == null)
|
|
|
|
|
return DataResult<TEntity>.Failed("结算单据与费用明细不一致");
|
|
|
|
|
|
|
|
|
|