|
|
@ -205,7 +205,9 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
ShippingDate = groupItem.Max(t => t.ShippingDate), |
|
|
|
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode), |
|
|
|
ToLoc = groupItem.Max(t => t.ToLoc), |
|
|
|
ErpToLoc = groupItem.Max(t => t.ErpToLoc) |
|
|
|
ErpToLoc = groupItem.Max(t => t.ErpToLoc), |
|
|
|
MatchNumber = groupItem.Max(t => t.MatchNumber), |
|
|
|
CodeType = groupItem.Max(t => t.CodeType) |
|
|
|
}).Where(t => t.Qty > 0M); |
|
|
|
//Edi
|
|
|
|
//var ediGroup = from edi in _settleAccountDbContext.Set<BBAC_SE_EDI>()
|
|
|
@ -245,7 +247,9 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
se.ToLoc, |
|
|
|
se.ErpToLoc, |
|
|
|
EdiQty = edi.Qty, |
|
|
|
EdiCustomerPartCode = edi.LU |
|
|
|
EdiCustomerPartCode = edi.LU, |
|
|
|
se.MatchNumber, |
|
|
|
se.CodeType |
|
|
|
}; |
|
|
|
var saSeCompareLeft = from sa in saGroup |
|
|
|
join seEdi in seEdiGroup |
|
|
@ -271,7 +275,10 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
EdiCustomerPartCode = seEdi.EdiCustomerPartCode, |
|
|
|
CustomerPartCode = sa.LU, |
|
|
|
Site = sa.Site, |
|
|
|
Price = sa.Price |
|
|
|
Price = sa.Price, |
|
|
|
MatchNumber= seEdi.MatchNumber, |
|
|
|
CodeType = seEdi.CodeType |
|
|
|
|
|
|
|
}; |
|
|
|
var saSeCompareRight = from seEdi in seEdiGroup |
|
|
|
join sa in saGroup |
|
|
@ -297,7 +304,9 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
EdiCustomerPartCode = seEdi.EdiCustomerPartCode, |
|
|
|
CustomerPartCode = sa.LU ?? seEdi.LU, |
|
|
|
Site = sa.Site, |
|
|
|
Price = sa.Price |
|
|
|
Price = sa.Price, |
|
|
|
MatchNumber = seEdi.MatchNumber, |
|
|
|
CodeType = seEdi.CodeType |
|
|
|
}; |
|
|
|
var saSeCompareFullJoin = saSeCompareLeft.Union(saSeCompareRight).ToList(); |
|
|
|
|
|
|
|