|
|
@ -408,18 +408,18 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
_excel.Append(detail, "发票明细"); |
|
|
|
} |
|
|
|
|
|
|
|
if (first.BusinessType == EnumBusinessType.JisBBAC || first.BusinessType == EnumBusinessType.JisHBPO) |
|
|
|
{ |
|
|
|
_excel.Append(m, "发票结算分组对应");//发票分组对应结算号
|
|
|
|
} |
|
|
|
if (first.BusinessType == EnumBusinessType.ZhiGongJianBBAC || first.BusinessType == EnumBusinessType.ZhiGongJianHBPO) |
|
|
|
{ |
|
|
|
_excel.Append(unsettle, "未结零件结算汇总"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var itm in entities) |
|
|
|
{ |
|
|
|
var mgroup =m.Where(p => p.InvbillNum == itm.InvbillNum).ToList(); |
|
|
|
var mgroup = m.Where(p => p.InvbillNum == itm.InvbillNum).ToList(); |
|
|
|
var adjp = adj.Where(p => p.InvBillNum == itm.InvbillNum).ToList(); |
|
|
|
var nolist = not.Where(p => p.InvBillNum == itm.InvbillNum).ToList(); |
|
|
|
var lsC = nolist.Where(p => p.Extend1 == "可结算") |
|
|
@ -430,14 +430,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
p.InvDate, |
|
|
|
p.InvBillNum, |
|
|
|
p.InvGroupNum, |
|
|
|
}).Select(p => new INVOICE_NOT_SETTLE_DTO() { |
|
|
|
LU =p.Key.LU, |
|
|
|
RealInvBillNum =p.Key.RealInvBillNum, |
|
|
|
InvDate =p.Key.InvDate, |
|
|
|
InvBillNum =p.Key.InvBillNum, |
|
|
|
}).Select(p => new INVOICE_NOT_SETTLE_DTO() |
|
|
|
{ |
|
|
|
LU = p.Key.LU, |
|
|
|
RealInvBillNum = p.Key.RealInvBillNum, |
|
|
|
InvDate = p.Key.InvDate, |
|
|
|
InvBillNum = p.Key.InvBillNum, |
|
|
|
|
|
|
|
InvGroupNum =p.Key.InvGroupNum, |
|
|
|
Qty=p.Sum(itm=>itm.Qty) |
|
|
|
InvGroupNum = p.Key.InvGroupNum, |
|
|
|
Qty = p.Sum(itm => itm.Qty) |
|
|
|
|
|
|
|
}).ToList(); |
|
|
|
var lsN = nolist.Where(p => p.Extend1 == "不可结算").ToList() |
|
|
@ -476,7 +477,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
invnot.Qty = string.Empty; |
|
|
|
ls.Add(invnot); |
|
|
|
} |
|
|
|
var entity= nolist.FirstOrDefault(); |
|
|
|
var entity = nolist.FirstOrDefault(); |
|
|
|
var disList = mgroup.Select(p => p.SettleGroupNum).Distinct().ToList(); |
|
|
|
for (int i = 0; i < lineC; i++)//更新可结信息
|
|
|
|
{ |
|
|
|