This commit is contained in:
chi
2023-08-17 11:55:09 +09:00
parent 299fce9038
commit b98a125f78
3 changed files with 23 additions and 11 deletions

View File

@@ -1329,7 +1329,13 @@ namespace FEQ0000
foreach (var idx in f.chklist)
{
var dr = newlist.Where(t => t.idx == idx).FirstOrDefault();
if (dr != null) { cnt += 1; dr.chk2 = true; dr.EndEdit(); }
if (dr != null)
{
cnt += 1;
dr.chk2 = true;
if (dr.IspumqtyNull() || dr.pumqty == 0) dr.pumqty = dr.pumqtyReq;
dr.EndEdit();
}
}
FCOMMON.Util.MsgI($"{cnt}건의 자료가 [구매담당확인] 되었습니다\n저장을 눌러야 최종 적용 됩니다");
}

View File

@@ -29,7 +29,7 @@ namespace FEQ0000.Purchase
newdr.pumname = item.pumname;
newdr.pumscale = item.pumscale;
newdr.pumunit = item.pumunit;
newdr.pumqty = item.pumqty;
newdr.pumqty = item.pumqtyReq;
newdr.pumprice = item.pumprice;
newdr.pumamt = item.pumamt;
newdr.supply = item.supply;
@@ -60,7 +60,7 @@ namespace FEQ0000.Purchase
newdr.pumname = item.pumname;
newdr.pumscale = item.pumscale;
newdr.pumunit = item.pumunit;
newdr.pumqty = item.pumqty;
newdr.pumqty = item.pumqtyReq;
newdr.pumprice = item.pumprice;
newdr.pumamt = item.pumamt;
newdr.supply = item.supply;