|
|
@ -1403,7 +1403,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
); |
|
|
|
string site = dtos.Where(p => !string.IsNullOrEmpty(p.Site)).FirstOrDefault().Site; |
|
|
|
string clientCode = string.Empty; |
|
|
|
|
|
|
|
switch (site) |
|
|
|
{ |
|
|
|
case "1040": |
|
|
@ -1434,7 +1433,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); |
|
|
|
await _repository.DbContext.BulkInsertAsync(groupList).ConfigureAwait(false); |
|
|
|
await _repository.DbContext.BulkInsertAsync(detailList).ConfigureAwait(false); |
|
|
|
|
|
|
|
if (adjlist.Count > 0) |
|
|
|
{ |
|
|
|
await _repository.DbContext.BulkUpdateAsync(adjlist).ConfigureAwait(false); |
|
|
@ -1673,7 +1671,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
{ |
|
|
|
detailList.AddRange(_entityDetailList); |
|
|
|
} |
|
|
|
|
|
|
|
if (p_first == true) |
|
|
|
{ |
|
|
|
var notsettle = _nothbpoRepository.Where(p => p.SettleBillNum == p_InvGroupNum);//一次开票时查找不可结数据,追加需求
|
|
|
@ -2223,13 +2220,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
beginDate: detail.BeginDate, |
|
|
|
endDate: detail.EndDate, |
|
|
|
partcode: detail.PartCode); |
|
|
|
entity.LineCode = detail.LineCode; |
|
|
|
entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
|
|
|
|
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
|
|
|
|
entity.SetProperty("VendorName", detail.VendorName);//供应商名称
|
|
|
|
entity.SetProperty("PurchaseOrderNumber", "");//采购订单号
|
|
|
|
entity.SetProperty("DeliveryIndexNumber", detail.DeliveryIndexNumber);//交付索引号
|
|
|
|
entity.SetProperty("PartName", detail.PartName);//零件名称
|
|
|
|
entity.LineCode = detail.LineCode; |
|
|
|
entity.SetProperty("DeliveryNumber", detail.DeliveryNumber);//交货号
|
|
|
|
entity.SetProperty("VendorCode", detail.VendorCode);//供应商代码
|
|
|
|
entity.SetProperty("VendorName", detail.VendorName);//供应商名称
|
|
|
|
entity.SetProperty("PurchaseOrderNumber", "");//采购订单号
|
|
|
|
entity.SetProperty("DeliveryIndexNumber", detail.DeliveryIndexNumber);//交付索引号
|
|
|
|
entity.SetProperty("PartName", detail.PartName);//零件名称
|
|
|
|
_entityDetailList.Add(entity); |
|
|
|
} |
|
|
|
if (_entityDetailList.Count > 0) |
|
|
|