|
@ -304,36 +304,41 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
itm.SetId(GuidGenerator.Create()); |
|
|
itm.SetId(GuidGenerator.Create()); |
|
|
var entity = new PUB_CAN_SA_DETAIL( |
|
|
|
|
|
guid: GuidGenerator.Create(), |
|
|
|
|
|
keyCode: itm.KeyCode, |
|
|
|
|
|
version: itm.Version, |
|
|
|
|
|
billNum: itm.InvGroupNum, |
|
|
|
|
|
settleBillNum: itm.SettleBillNum, |
|
|
|
|
|
lU: itm.LU, |
|
|
|
|
|
pN: itm.PN, |
|
|
|
|
|
site: itm.Site, |
|
|
|
|
|
qty: itm.Qty, |
|
|
|
|
|
price: itm.Price, |
|
|
|
|
|
businessType: dfirst.BusinessType, |
|
|
|
|
|
settleDate: itm.SettleDate, |
|
|
|
|
|
groupNum: itm.GroupNum, |
|
|
|
|
|
invGroupNum: inv.InvGroupNum, |
|
|
|
|
|
invbillnum: string.Empty, |
|
|
|
|
|
partcode: relist.FirstOrDefault(p => p.SettleMaterialCode == itm.LU).ErpMaterialCode, |
|
|
|
|
|
pobillnum: string.Empty |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
entity.SetProperty("DeliveryNumber", ""); |
|
|
if (itm.Qty > 0) |
|
|
entity.SetProperty("VendorCode", dfirst.GetProperty("VendorCode", string.Empty)); |
|
|
{ |
|
|
entity.SetProperty("VendorName", ""); |
|
|
|
|
|
entity.SetProperty("PO", ""); |
|
|
var entity = new PUB_CAN_SA_DETAIL( |
|
|
entity.SetProperty("DeliveryIndexNumber", ""); |
|
|
guid: GuidGenerator.Create(), |
|
|
entity.SetProperty("PartName", ""); |
|
|
keyCode: itm.KeyCode, |
|
|
entity.SetProperty("PartGroup", "EXT"); |
|
|
version: itm.Version, |
|
|
entity.SetProperty("PN", ""); |
|
|
billNum: itm.InvGroupNum, |
|
|
entity.SetProperty("SettleDate", itm.SettleDate); |
|
|
settleBillNum: itm.SettleBillNum, |
|
|
publist.Add(entity); |
|
|
lU: itm.LU, |
|
|
|
|
|
pN: itm.PN, |
|
|
|
|
|
site: itm.Site, |
|
|
|
|
|
qty: itm.Qty, |
|
|
|
|
|
price: itm.Price, |
|
|
|
|
|
businessType: dfirst.BusinessType, |
|
|
|
|
|
settleDate: itm.SettleDate, |
|
|
|
|
|
groupNum: itm.GroupNum, |
|
|
|
|
|
invGroupNum: inv.InvGroupNum, |
|
|
|
|
|
invbillnum: string.Empty, |
|
|
|
|
|
partcode: relist.FirstOrDefault(p => p.SettleMaterialCode == itm.LU).ErpMaterialCode, |
|
|
|
|
|
pobillnum: string.Empty |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
entity.SetProperty("DeliveryNumber", ""); |
|
|
|
|
|
entity.SetProperty("VendorCode", dfirst.GetProperty("VendorCode", string.Empty)); |
|
|
|
|
|
entity.SetProperty("VendorName", ""); |
|
|
|
|
|
entity.SetProperty("PO", ""); |
|
|
|
|
|
entity.SetProperty("DeliveryIndexNumber", ""); |
|
|
|
|
|
entity.SetProperty("PartName", ""); |
|
|
|
|
|
entity.SetProperty("PartGroup", "EXT"); |
|
|
|
|
|
entity.SetProperty("PN", ""); |
|
|
|
|
|
entity.SetProperty("SettleDate", itm.SettleDate); |
|
|
|
|
|
publist.Add(entity); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|