|
@ -129,7 +129,27 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs |
|
|
LU = g.Key.LU, |
|
|
LU = g.Key.LU, |
|
|
Qty = g.Sum(p => p.Qty), |
|
|
Qty = g.Sum(p => p.Qty), |
|
|
}; |
|
|
}; |
|
|
var invs = SecInvoice(entitys, new List<PUB_ADJ_DETAIL>(), dtos, main.Version, main.InvGroupNum, string.Empty, main.BusinessType, query.ToList()); |
|
|
var notlist = notQuery.Select(p => new TEMP_NOT_SA_DETAIL |
|
|
|
|
|
{ |
|
|
|
|
|
KeyCode = p.KeyCode, |
|
|
|
|
|
Version = p.Version, |
|
|
|
|
|
SettleBillNum = p.SettleBillNum, |
|
|
|
|
|
LU = p.LU, |
|
|
|
|
|
PN = p.PN, |
|
|
|
|
|
Site = p.Site, |
|
|
|
|
|
Qty = p.Qty, |
|
|
|
|
|
Price = p.Price, |
|
|
|
|
|
BusinessType = p.BusinessType, |
|
|
|
|
|
IsReturn = "", |
|
|
|
|
|
InvGroupNum = p.InvGroupNum, |
|
|
|
|
|
SettleDate = p.SettleDate, |
|
|
|
|
|
GroupNum = p.GroupNum, |
|
|
|
|
|
ContractDocID = string.Empty, |
|
|
|
|
|
PartCode = p.PartCode |
|
|
|
|
|
|
|
|
|
|
|
}).ToList();//不能结算
|
|
|
|
|
|
var invs = FirstInvoice(entitys, new List<PUB_ADJ_DETAIL>(), dtos, notlist, main.Version, main.InvGroupNum, string.Empty, main.BusinessType); |
|
|
|
|
|
//var invs = SecInvoice(entitys, new List<PUB_ADJ_DETAIL>(), dtos, main.Version, main.InvGroupNum, string.Empty, main.BusinessType, query.ToList());
|
|
|
if (invs.Count > 0) |
|
|
if (invs.Count > 0) |
|
|
{ |
|
|
{ |
|
|
main.State = SettleBillState.已开票; |
|
|
main.State = SettleBillState.已开票; |
|
|