diff --git a/src/main/java/com/divudi/bean/pharmacy/StockController.java b/src/main/java/com/divudi/bean/pharmacy/StockController.java index 13d19b209f..9ec9e9a4a1 100644 --- a/src/main/java/com/divudi/bean/pharmacy/StockController.java +++ b/src/main/java/com/divudi/bean/pharmacy/StockController.java @@ -101,6 +101,9 @@ public StoreBean getStoreBean() { public void listStocksOfSelectedItem(Item item) { selectedItemStocks = null; + if(selectedItemStocks == null){ + selectedItemStocks = new ArrayList<>(); + } selectedItem = item; if (item == null) { return; diff --git a/src/main/webapp/pharmacy/pharmacy_purhcase_order_request.xhtml b/src/main/webapp/pharmacy/pharmacy_purhcase_order_request.xhtml index 1c9b6b416b..2e2b30d4bc 100644 --- a/src/main/webapp/pharmacy/pharmacy_purhcase_order_request.xhtml +++ b/src/main/webapp/pharmacy/pharmacy_purhcase_order_request.xhtml @@ -105,7 +105,8 @@ @@ -113,7 +114,8 @@ @@ -130,7 +132,8 @@