diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp index 7317a41..3122fca 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-edit.jsp @@ -441,7 +441,11 @@ $P.productList.onAppend = (item) => { if($P.productList._items != null && $P.productList._items.length > 0){ - $P.productList._items.forEach((it)=>{it.state = "";}); + $P.productList._items.forEach((it)=>{ + if(it.state == "added"){ + it.state = ""; + } + }); } if (!item) return; diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp index 61c7e8f..0e8301e 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseMgtReceipt-info.jsp @@ -414,7 +414,11 @@ $P.productList.onAppend = (item) => { if($P.productList._items != null && $P.productList._items.length > 0){ - $P.productList._items.forEach((it)=>{it.state = "";}); + $P.productList._items.forEach((it)=>{ + if(it.state == "added"){ + it.state = ""; + } + }); } if (!item) return;