Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036182Retail ModulesMobile Warehouse operationspublic2017-06-06 11:342017-06-20 16:21
nataliag 
migueldejuana 
normalmajoralways
closedfixed 
5
 
RR17Q3 
marvintm
No
0036182: Goods movement is not working correctly when using more stock than the available.
If you have the "Allow negative stock" disabled and you do a goods movement using a quantity higher than the stock available it does not appear in "Goods Movement" window in backoffice and an error is shown in tomcat log.


1- Log in into backoffice and disable the "Allow negative stock" option in "Client" window.
2-Then go to Mobile Warehouse and create a new Goods Movement. (The organization used can't be * and should have a warehouse associated)
3-Select a product and the bins origin and destination. Automatically a quantity is shown.
4- Change that quantity using the keyboard and increase it.
5-Process the movement and go to "Goods movement" window in backoffice. This movement does not appear there and if you look the tomcat log an error is shown.
A message should appear in the mobile warehouse screen, advising the user that this order is not going to be processed due to the lack of stock. Otherwise, the user does not know that its order has not been processed.

No tags attached.
related to defect 0036040 closed ranjith_qualiantech_com Goods Movements created from mobile are not saved in backend if the user's default organization is * 
Issue History
2017-06-06 11:34nataliagNew Issue
2017-06-06 11:34nataliagAssigned To => Retail
2017-06-06 11:34nataliagResolution time => 1498514400
2017-06-06 11:34nataliagTriggers an Emergency Pack => No
2017-06-06 11:35nataliagRelationship addedrelated to 0036040
2017-06-06 14:55PracticsIssue Monitored: Practics
2017-06-06 18:09hgbotCheckin
2017-06-06 18:09hgbotNote Added: 0097171
2017-06-06 18:09hgbotStatusnew => resolved
2017-06-06 18:09hgbotResolutionopen => fixed
2017-06-06 18:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/1513b55303b90704381cf1580c72a238851a4060 [^]
2017-06-07 08:18migueldejuanaAssigned ToRetail => migueldejuana
2017-06-07 10:47marvintmReview Assigned To => marvintm
2017-06-07 10:47marvintmStatusresolved => closed
2017-06-07 10:47marvintmFixed in Version => RR17Q3
2017-06-08 13:38malsasuaNote Added: 0097217
2017-06-12 10:32hgbotCheckin
2017-06-12 10:32hgbotNote Added: 0097303
2017-06-12 10:32hgbotStatusclosed => resolved
2017-06-12 10:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/1513b55303b90704381cf1580c72a238851a4060 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/c1c14ccde98b65a5813353d414a616dba3a7a179 [^]
2017-06-12 14:06hgbotCheckin
2017-06-12 14:06hgbotNote Added: 0097315
2017-06-12 14:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/c1c14ccde98b65a5813353d414a616dba3a7a179 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/db5cc04829b0ecc9b17618cea5daf0515198a4b8 [^]
2017-06-20 16:21marvintmStatusresolved => closed

Notes
(0097171)
hgbot   
2017-06-06 18:09   
Repository: erp/pmods/org.openbravo.mobile.warehouse
Changeset: 1513b55303b90704381cf1580c72a238851a4060
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Jun 06 18:04:05 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/1513b55303b90704381cf1580c72a238851a4060 [^]

Fixed issue 0036182: Goods movement is not working correctly when using more stock than the available.

- Change to FailOver in order to make it transactional
- Handle the error and show a generic message

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/OBMOBC_SERVICES.xml
M web/org.openbravo.mobile.warehouse/source/goodsMovement/wh-movement-model.js
---
(0097217)
malsasua   
2017-06-08 13:38   
The message displayed is not provided info about what is the line with problems to process. Could be possible to improve the error message informing about the product (or line) with the problem?
(0097303)
hgbot   
2017-06-12 10:32   
Repository: erp/pmods/org.openbravo.mobile.warehouse
Changeset: c1c14ccde98b65a5813353d414a616dba3a7a179
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Jun 12 10:04:55 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.warehouse/rev/c1c14ccde98b65a5813353d414a616dba3a7a179 [^]

Fixed issue 0036182: Goods movement is not working correctly when using more stock than the available.

- Show the error message sent from backend in a modal

---
M web/org.openbravo.mobile.warehouse/source/goodsMovement/wh-movement-model.js
---
(0097315)
hgbot   
2017-06-12 14:06   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: db5cc04829b0ecc9b17618cea5daf0515198a4b8
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Mon Jun 12 10:03:44 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/db5cc04829b0ecc9b17618cea5daf0515198a4b8 [^]

Fixed issue 0036182: Goods movement is not working correctly when using more stock than the available.

- If main Servlets gives an error message, send it to frontend

---
M src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java
---