|
|
|
@ -49,10 +49,12 @@ namespace DS.WMS.Core.Invoice.Method
|
|
|
|
|
Details = SqlFunc.Subqueryable<ApplicationDetail>().Where(d => d.ApplicationId == i.Id)
|
|
|
|
|
.ToList(d => new ApplicationDetailDto
|
|
|
|
|
{
|
|
|
|
|
Currency = d.Currency,
|
|
|
|
|
ProcessedAmount = d.ProcessedAmount,
|
|
|
|
|
ExchangeRate = d.ExchangeRate,
|
|
|
|
|
OriginalCurrency = d.OriginalCurrency,
|
|
|
|
|
OriginalAmount = d.OriginalAmount,
|
|
|
|
|
OriginalSettlementAmount = d.OriginalSettlementAmount,
|
|
|
|
|
ExchangeRate = d.ExchangeRate
|
|
|
|
|
OriginalProcessedAmount = d.OriginalProcessedAmount
|
|
|
|
|
}),
|
|
|
|
|
InvoiceApplicationList = SqlFunc.Subqueryable<ApplicationDetail>().LeftJoin<InvoiceApplication>((d, a) =>
|
|
|
|
|
d.ApplicationId == i.Id && d.Category == DetailCategory.InvoiceIssuance && d.RefId == a.Id)
|
|
|
|
|