{"action":"created","issue":{"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/1082","repository_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api","labels_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/1082/comments","events_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/1082/events","html_url":"https://github.com/metasfresh/metasfresh-webui-api/issues/1082","id":375036382,"node_id":"MDU6SXNzdWUzNzUwMzYzODI=","number":1082,"title":"Picking from source HU not working","user":{"login":"metas-dh","id":18696715,"node_id":"MDQ6VXNlcjE4Njk2NzE1","avatar_url":"https://avatars2.githubusercontent.com/u/18696715?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-dh","html_url":"https://github.com/metas-dh","followers_url":"https://api.github.com/users/metas-dh/followers","following_url":"https://api.github.com/users/metas-dh/following{/other_user}","gists_url":"https://api.github.com/users/metas-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-dh/subscriptions","organizations_url":"https://api.github.com/users/metas-dh/orgs","repos_url":"https://api.github.com/users/metas-dh/repos","events_url":"https://api.github.com/users/metas-dh/events{/privacy}","received_events_url":"https://api.github.com/users/metas-dh/received_events","type":"User","site_admin":false},"labels":[{"id":536704709,"node_id":"MDU6TGFiZWw1MzY3MDQ3MDk=","url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/labels/branch:master","name":"branch:master","color":"0e8a16","default":false},{"id":358094846,"node_id":"MDU6TGFiZWwzNTgwOTQ4NDY=","url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/labels/type:bug","name":"type:bug","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T14:14:56Z","updated_at":"2018-10-31T16:11:11Z","closed_at":"2018-10-31T16:11:11Z","author_association":"MEMBER","body":"### Is this a bug or feature request?\r\nBug\r\n### What is the current behavior?\r\nPicking from source HU is not working.\r\n#### Which are the steps to reproduce?\r\n1. Have a source HU for picking\r\n2. Select a picking slot, and call `Pick to new HU`\r\n3. Set a qty that is available in the source HU (or lower) in the modal window, OK:\r\n\r\n\r\n<details>\r\n\r\n```\r\n{timestamp: 1540822428.166, status: 500, error: \"Internal Server Error\",…}\r\nerror: \"Internal Server Error\"\r\nexception: \"org.adempiere.exceptions.AdempiereException\"\r\nmessage: \"Invalid quantity to pick: 0 Stk (source: 0 Stk)\"\r\npath: \"/rest/api/process/ADP_540807/1000487/start\"\r\nstatus: 500\r\ntimestamp: 1540822428.166\r\ntrace: [\"org.adempiere.exceptions.AdempiereException: Invalid quantity to pick: 0 Stk (source: 0 Stk)\",…]\r\n[0 … 99]\r\n0: \"org.adempiere.exceptions.AdempiereException: Invalid quantity to pick: 0 Stk (source: 0 Stk)\"\r\n1: \"\tat de.metas.handlingunits.picking.candidate.commands.PickHUCommand.performInTrx(PickHUCommand.java:97)\"\r\n2: \"\tat org.adempiere.ad.trx.api.impl.TrxCallableWrappers$5.call(TrxCallableWrappers.java:222)\"\r\n3: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call0(AbstractTrxManager.java:776)\"\r\n4: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:689)\"\r\n5: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:590)\"\r\n6: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:521)\"\r\n7: \"\tat org.adempiere.ad.trx.api.ITrxManager.callInThreadInheritedTrx(ITrxManager.java:250)\"\r\n8: \"\tat de.metas.handlingunits.picking.candidate.commands.PickHUCommand.perform(PickHUCommand.java:89)\"\r\n9: \"\tat de.metas.handlingunits.picking.PickingCandidateService.pickHU(PickingCandidateService.java:93)\"\r\n10: \"\tat de.metas.ui.web.picking.pickingslot.process.WEBUI_Picking_PickQtyToNewHU.createAndAddHU(WEBUI_Picking_PickQtyToNewHU.java:171)\"\r\n11: \"\tat de.metas.ui.web.picking.pickingslot.process.WEBUI_Picking_PickQtyToNewHU.doIt(WEBUI_Picking_PickQtyToNewHU.java:124)\"\r\n12: \"\tat de.metas.process.JavaProcess.startProcess(JavaProcess.java:296)\"\r\n13: \"\tat de.metas.process.ProcessExecutor.startJavaProcess(ProcessExecutor.java:564)\"\r\n14: \"\tat de.metas.process.ProcessExecutor.startJavaOrScriptProcess(ProcessExecutor.java:460)\"\r\n15: \"\tat de.metas.process.ProcessExecutor.access$700(ProcessExecutor.java:50)\"\r\n16: \"\tat de.metas.process.ProcessExecutor$1.run(ProcessExecutor.java:224)\"\r\n17: \"\tat org.adempiere.ad.trx.api.impl.TrxCallableWrappers$3.call(TrxCallableWrappers.java:145)\"\r\n18: \"\tat org.adempiere.ad.trx.api.impl.TrxCallableWrappers$3.call(TrxCallableWrappers.java:135)\"\r\n19: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call0(AbstractTrxManager.java:776)\"\r\n20: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:689)\"\r\n21: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:590)\"\r\n22: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.call(AbstractTrxManager.java:521)\"\r\n23: \"\tat org.adempiere.ad.trx.api.impl.AbstractTrxManager.run(AbstractTrxManager.java:507)\"\r\n24: \"\tat de.metas.process.ProcessExecutor.executeNow(ProcessExecutor.java:286)\"\r\n25: \"\tat de.metas.process.ProcessExecutor.executeSync(ProcessExecutor.java:171)\"\r\n26: \"\tat de.metas.process.ProcessExecutor.access$1100(ProcessExecutor.java:50)\"\r\n27: \"\tat de.metas.process.ProcessExecutor$Builder.executeSync(ProcessExecutor.java:651)\"\r\n28: \"\tat de.metas.ui.web.process.adprocess.ADProcessInstanceController.executeADProcess(ADProcessInstanceController.java:333)\"\r\n29: \"\tat de.metas.ui.web.process.adprocess.ADProcessInstanceController.startProcess(ADProcessInstanceController.java:310)\"\r\n30: \"\tat de.metas.ui.web.process.ProcessRestController.lambda$null$8(ProcessRestController.java:262)\"\r\n31: \"\tat de.metas.ui.web.process.adprocess.ADProcessInstancesRepository.forProcessInstanceWritable(ADProcessInstancesRepository.java:420)\"\r\n32: \"\tat de.metas.ui.web.process.ProcessRestController.lambda$startProcess$9(ProcessRestController.java:261)\"\r\n33: \"\tat de.metas.ui.web.window.controller.Execution$ExecutionBuilder.lambda$execute$2(Execution.java:237)\"\r\n34: \"\tat de.metas.ui.web.window.controller.Execution$ExecutionBuilder.execute(Execution.java:260)\"\r\n35: \"\tat de.metas.ui.web.process.ProcessRestController.startProcess(ProcessRestController.java:260)\"\r\n36: \"\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\"\r\n37: \"\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\"\r\n38: \"\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\"\r\n39: \"\tat java.lang.reflect.Method.invoke(Method.java:498)\"\r\n40: \"\tat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)\"\r\n41: \"\tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)\"\r\n42: \"\tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)\"\r\n43: \"\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)\"\r\n44: \"\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)\"\r\n45: \"\tat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)\"\r\n46: \"\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)\"\r\n47: \"\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)\"\r\n48: \"\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)\"\r\n49: \"\tat org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)\"\r\n50: \"\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:635)\"\r\n51: \"\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)\"\r\n52: \"\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:742)\"\r\n53: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\"\r\n54: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n55: \"\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\"\r\n56: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n57: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n58: \"\tat org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)\"\r\n59: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n60: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n61: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n62: \"\tat de.metas.ui.web.config.WebConfig$1.doFilter(WebConfig.java:82)\"\r\n63: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n64: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n65: \"\tat de.metas.ui.web.config.ServletLoggingFilter.doFilter(ServletLoggingFilter.java:89)\"\r\n66: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n67: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n68: \"\tat de.metas.ui.web.config.CORSFilter.doFilter(CORSFilter.java:79)\"\r\n69: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n70: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n71: \"\tat org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:110)\"\r\n72: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n73: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n74: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n75: \"\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\"\r\n76: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n77: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n78: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n79: \"\tat org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:105)\"\r\n80: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n81: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n82: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n83: \"\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)\"\r\n84: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n85: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n86: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n87: \"\tat org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:167)\"\r\n88: \"\tat org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)\"\r\n89: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n90: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n91: \"\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)\"\r\n92: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n93: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n94: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n95: \"\tat org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:106)\"\r\n96: \"\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\"\r\n97: \"\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\"\r\n98: \"\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\"\r\n99: \"\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\"\r\n[100 … 115]\r\n100: \"\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\"\r\n101: \"\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)\"\r\n102: \"\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\"\r\n103: \"\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)\"\r\n104: \"\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\"\r\n105: \"\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\"\r\n106: \"\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)\"\r\n107: \"\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\"\r\n108: \"\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)\"\r\n109: \"\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)\"\r\n110: \"\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\"\r\n111: \"\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\"\r\n112: \"\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\"\r\n113: \"\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\"\r\n114: \"\tat java.lang.Thread.run(Thread.java:748)\"\r\n115: \"\"\r\n```\r\n\r\n</details>\r\n\r\n\r\n### What is the expected or desired behavior?\r\nShall work."},"comment":{"url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/comments/434748584","html_url":"https://github.com/metasfresh/metasfresh-webui-api/issues/1082#issuecomment-434748584","issue_url":"https://api.github.com/repos/metasfresh/metasfresh-webui-api/issues/1082","id":434748584,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDc0ODU4NA==","user":{"login":"metas-dh","id":18696715,"node_id":"MDQ6VXNlcjE4Njk2NzE1","avatar_url":"https://avatars2.githubusercontent.com/u/18696715?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-dh","html_url":"https://github.com/metas-dh","followers_url":"https://api.github.com/users/metas-dh/followers","following_url":"https://api.github.com/users/metas-dh/following{/other_user}","gists_url":"https://api.github.com/users/metas-dh/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-dh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-dh/subscriptions","organizations_url":"https://api.github.com/users/metas-dh/orgs","repos_url":"https://api.github.com/users/metas-dh/repos","events_url":"https://api.github.com/users/metas-dh/events{/privacy}","received_events_url":"https://api.github.com/users/metas-dh/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T16:11:11Z","updated_at":"2018-10-31T16:11:11Z","author_association":"MEMBER","body":"Results of IT1\r\ntested in mf15\r\n\r\nPicking from source HU:\r\n* `Pick to new HU`working correctly: OK\r\n* `Pick to existing HU`working correctly: OK\r\n* `Move back to source HU`working correctly: OK\r\n* processing picking: worked fine, correct qty from picking from source HU: OK"}}
{"actor":{"display_login":"metas-dh"}}