|
|
|
@ -5,7 +5,6 @@ using DS.WMS.Core.Application.Dtos;
|
|
|
|
|
using DS.WMS.Core.Application.Entity;
|
|
|
|
|
using DS.WMS.Core.Application.Method;
|
|
|
|
|
using DS.WMS.Core.Fee.Entity;
|
|
|
|
|
using DS.WMS.Core.Invoice.Dto;
|
|
|
|
|
using DS.WMS.Core.Invoice.Dtos;
|
|
|
|
|
using DS.WMS.Core.Invoice.Interface;
|
|
|
|
|
using DS.WMS.Core.Sys.Entity;
|
|
|
|
@ -38,7 +37,7 @@ namespace DS.WMS.Core.Invoice.Method
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public async Task<DataResult<List<InvoiceDto>>> GetListAsync(PageRequest<string> request)
|
|
|
|
|
public async Task<DataResult<InvoiceList>> GetListAsync(PageRequest<string> request)
|
|
|
|
|
{
|
|
|
|
|
var query = TenantDb.Queryable<Entity.Invoice>()
|
|
|
|
|
.Select((i) => new InvoiceDto
|
|
|
|
@ -79,7 +78,8 @@ namespace DS.WMS.Core.Invoice.Method
|
|
|
|
|
{
|
|
|
|
|
OriginalCurrency = d.OriginalCurrency,
|
|
|
|
|
OriginalAmount = d.OriginalAmount,
|
|
|
|
|
OriginalSettlementAmount = d.OriginalSettlementAmount
|
|
|
|
|
OriginalSettlementAmount = d.OriginalSettlementAmount,
|
|
|
|
|
ExchangeRate = d.ExchangeRate
|
|
|
|
|
}),
|
|
|
|
|
InvoiceApplicationList = SqlFunc.Subqueryable<ApplicationDetail>().LeftJoin<InvoiceApplication>((d, a) =>
|
|
|
|
|
d.ApplicationId == i.Id && d.Category == DetailCategory.InvoiceIssuance && d.RefId == a.Id)
|
|
|
|
@ -117,7 +117,10 @@ namespace DS.WMS.Core.Invoice.Method
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
InvoiceList list = new() { List = result.Data };
|
|
|
|
|
var invResult = DataResult<InvoiceList>.Success(list, result.MultiCode);
|
|
|
|
|
invResult.Count = result.Count;
|
|
|
|
|
return invResult;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|