|
|
@ -360,9 +360,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
/// <returns></returns>
|
|
|
|
public virtual async Task<bool> ReceivedAsync(List<string> p_invs) |
|
|
|
{ |
|
|
|
|
|
|
|
var invList = _repository.Where(p => p_invs.Contains(p.InvbillNum)).ToList();//所有提交发票信息
|
|
|
|
|
|
|
|
int count = invList.Select(p => p.InvGroupNum).Distinct().Count(); |
|
|
|
if (count > 1) |
|
|
|
{ |
|
|
@ -1195,10 +1193,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
copyDic.Add(itm.GroupNum, itm.Amt); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dictionary<string, List<string>> invoiceMap = new Dictionary<string, List<string>>(); |
|
|
|
var first=p_list.FirstOrDefault(); |
|
|
|
foreach (var itm in dic) |
|
|
@ -2257,7 +2251,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
PO= inv1.GetProperty("PO", ""), |
|
|
|
DeliveryIndexNumber = inv1.GetProperty("DeliveryIndexNumber", ""),//交付索引号
|
|
|
|
PartName = inv1.GetProperty("PartName", ""),//零件名称
|
|
|
|
PartGroup=inv1.GetProperty("CommodityGroup","") |
|
|
|
PartGroup=inv1.GetProperty("CommodityGroup",""), |
|
|
|
SettleDate=inv1.GetProperty("SettleDate", "") |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
@ -2313,6 +2308,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
entity.SetProperty("PartName", detail.PartName);//零件名称
|
|
|
|
entity.SetProperty("PartGroup", detail.PartGroup); |
|
|
|
entity.SetProperty("PN", detail.PN); |
|
|
|
entity.SetProperty("SettleDate", detail.SettleDate); |
|
|
|
|
|
|
|
_entityDetailList.Add(entity); |
|
|
|
} |
|
|
|
if (_entityDetailList.Count > 0) |
|
|
@ -2337,6 +2334,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers |
|
|
|
clientCode: string.Empty, |
|
|
|
realAmt: readAmt |
|
|
|
); |
|
|
|
invbill.Site = "1049"; |
|
|
|
invbill.CreationTime = DateTime.Now; |
|
|
|
invbill.ClientCode = "C001"; |
|
|
|
invlist.Add(invbill); |
|
|
|