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 e42fb06..6c3c73d 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 @@ -408,10 +408,13 @@ } }); } - - - $P.productList.onAppend = item => { - + + + $P.productList.onAppend = (item) => { + if($P.productList._items != null && $P.productList._items.length > 0){ + $P.productList._items.forEach((it)=>{it.state = "";}); + } + if (!item) return; if (item.length < 1) 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 7a2ded9..31f2c81 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 @@ -377,10 +377,13 @@ } }); } - - - $P.productList.onAppend = item => { - + + + $P.productList.onAppend = (item) => { + if($P.productList._items != null && $P.productList._items.length > 0){ + $P.productList._items.forEach((it)=>{it.state = "";}); + } + if (!item) return; if (item.length < 1) return;