|
|
@@ -1146,7 +1146,7 @@ namespace Business.SystemJobManagement
|
|
|
var plists = polists.Where(x => x.po_id == po.Id).ToList();
|
|
|
foreach (var dtl in dtls)
|
|
|
{
|
|
|
- var plist = plists.Find(x => x.ItemNum == dtl.ItemNum);
|
|
|
+ var plist = plists.Find(x => x.ItemNum == dtl.ItemNum && x.polist_row == dtl.Line);
|
|
|
if (plist != null)
|
|
|
{
|
|
|
plist.state = dtl.Status == null ? 1 : dtl.Status.ToUpper() == "C" ? 0 : 1;
|
|
|
@@ -1157,8 +1157,8 @@ namespace Business.SystemJobManagement
|
|
|
plist = new srm_po_list();
|
|
|
plist.po_id = po.Id;
|
|
|
plist.po_billno = po.po_billno;
|
|
|
+ plist.polist_row = dtl.Line;
|
|
|
plist.GenerateNewId(help.NextId());
|
|
|
- plist.polist_row = dtl.ReqLine;
|
|
|
plist.pr_purchase_id = po.supplier_id;
|
|
|
plist.pr_purchase_name = po.supplier_name;
|
|
|
var icitem = itemList.Find(a => a.number == dtl.ItemNum);
|