|
@ -348,6 +348,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <param name="p_billNum"></param>
|
|
|
/// <param name="p_billNum"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[UnitOfWork(false)] |
|
|
public virtual async Task<List<INVOICE_GRP>> GetInvoiceListAsync(List<string> invs) |
|
|
public virtual async Task<List<INVOICE_GRP>> GetInvoiceListAsync(List<string> invs) |
|
|
{ |
|
|
{ |
|
|
return await _repository.Where(p => invs.Contains(p.InvbillNum)).ToListAsync().ConfigureAwait(false); |
|
|
return await _repository.Where(p => invs.Contains(p.InvbillNum)).ToListAsync().ConfigureAwait(false); |
|
@ -611,7 +612,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
partcode: itm.PartCode); |
|
|
partcode: itm.PartCode); |
|
|
entity.ErpLoc = itm.ErpLoc;//补字段库位
|
|
|
entity.ErpLoc = itm.ErpLoc;//补字段库位
|
|
|
entity.PartCode = itm.RealPartCode;//真实零件号
|
|
|
entity.PartCode = itm.RealPartCode;//真实零件号
|
|
|
|
|
|
|
|
|
entityDetail.Add(entity); |
|
|
entityDetail.Add(entity); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -809,8 +809,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
bbacDetail.Add(entity |
|
|
bbacDetail.Add(entity |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
await _repository.DbContext.BulkInsertAsync(bbacmainlist).ConfigureAwait(false); |
|
|
await _repository.DbContext.BulkInsertAsync(bbacmainlist); |
|
|
await _repository.DbContext.BulkInsertAsync(bbacDetail).ConfigureAwait(false); |
|
|
await _repository.DbContext.BulkInsertAsync(bbacDetail); |
|
|
|
|
|
|
|
|
foreach (var itm in invList) |
|
|
foreach (var itm in invList) |
|
|
{ |
|
|
{ |
|
@ -2249,6 +2249,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
BeginDate = dto1.BeginDate, |
|
|
BeginDate = dto1.BeginDate, |
|
|
EndDate = dto1.EndDate, |
|
|
EndDate = dto1.EndDate, |
|
|
LineCode = dto1.LineCode, |
|
|
LineCode = dto1.LineCode, |
|
|
|
|
|
ContractDocID = dto1.ContractDocID, |
|
|
DeliveryNumber = inv1.GetProperty("DeliveryNumber", ""),//交货号
|
|
|
DeliveryNumber = inv1.GetProperty("DeliveryNumber", ""),//交货号
|
|
|
InvoiceNumber = inv1.GetProperty("InvoiceNumber", ""),//发票号
|
|
|
InvoiceNumber = inv1.GetProperty("InvoiceNumber", ""),//发票号
|
|
|
VendorCode = inv1.GetProperty("VendorCode", ""),//供应商代码
|
|
|
VendorCode = inv1.GetProperty("VendorCode", ""),//供应商代码
|
|
@ -2302,6 +2303,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
endDate: detail.EndDate, |
|
|
endDate: detail.EndDate, |
|
|
partcode: detail.PartCode); |
|
|
partcode: detail.PartCode); |
|
|
entity.LineCode = detail.LineCode; |
|
|
entity.LineCode = detail.LineCode; |
|
|
|
|
|
|
|
|
|
|
|
entity.SetProperty("ContractDocID", detail.ContractDocID);//交货号
|
|
|
entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
|
|
|
entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
|
|
|
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
|
|
|
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
|
|
|
entity.SetProperty("VendorName", detail.VendorName);//供应商名称
|
|
|
entity.SetProperty("VendorName", detail.VendorName);//供应商名称
|
|
|