diff --git a/src/webapp/WEB-INF/classes/config/origen/inventory/moveInventoryPage.xml b/src/webapp/WEB-INF/classes/config/origen/inventory/moveInventoryPage.xml index 120f5f7..bb4cc3f 100644 --- a/src/webapp/WEB-INF/classes/config/origen/inventory/moveInventoryPage.xml +++ b/src/webapp/WEB-INF/classes/config/origen/inventory/moveInventoryPage.xml @@ -17,11 +17,10 @@ FROM Location location WHERE upper(location.code) LIKE upper(:param) AND location.disabled = false - AND (location.countLock = '' or location.countLock is null) - AND (location.inLock = '' or location.inLock is null) - AND (location.outLock = '' or location.outLock is null) - AND location.code <> ${inventory.location.code} - AND location.type in ('STORAGE','TRANSIT')]]> + AND location.code !=${inventory.location.code} + AND location.type in ('STORAGE','TRANSIT') + AND (location.id not in (select inventory.location.id from Inventory inventory where inventory.location.id=location.id and inventory.quantity>0 ) or location.mixItem=true) + ]]>