|
|
@ -143,7 +143,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
_globalConfigOptions.IsSyncInvoiceQadState = true; |
|
|
|
|
|
|
|
var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>() |
|
|
|
.Where(t => invbillNums.Contains(t.InvbillNum)); |
|
|
|
.Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.已扣减); |
|
|
|
foreach (var itm in invoiceGrps) |
|
|
|
{ |
|
|
|
itm.State = SettleBillState.发票同步中; |
|
|
@ -990,7 +990,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
.Select(p => new { Erploc = p.Key.ErpLoc, p.Key.PartCode, p.Key.BusinessType, Amt = Math.Round(p.Sum(t => t.Qty * t.Price), 2), Price = p.Key.Price, Qty = p.Sum(t => t.Qty) }).ToList(); |
|
|
|
var tedSaInvs = new List<TED_SAS_INVOICE>(); |
|
|
|
|
|
|
|
|
|
|
|
var taskId = GuidGenerator.Create(); |
|
|
|
var teaTaskSub = new TEA_TASK_SUB() |
|
|
|
{ |
|
|
|