|
|
@ -304,36 +304,41 @@ namespace Win.Sfs.SettleAccount.Entities.BQ |
|
|
|
{ |
|
|
|
|
|
|
|
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", ""); |
|
|
|
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); |
|
|
|
if (itm.Qty > 0) |
|
|
|
{ |
|
|
|
|
|
|
|
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", ""); |
|
|
|
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 |
|
|
|