Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030999Retail ModulesWeb POSpublic2015-10-01 08:442016-07-28 08:15
guillermogil 
guilleaer 
highmajoralways
closedfixed 
5
 
RR16Q1 
marvintm
No
0030999: If you add a product unit with the Check stock screen, that order goes to errors while importing
If you add a product unit with the Check stock screen, that order goes to errors while importing:

org.openbravo.base.exception.OBException: Error in OrderLoader:
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:353)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.saveRecord(DataSynchronizationProcess.java:202)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:159)
    at org.openbravo.mobile.core.process.DataSynchronizationProcess.exec(DataSynchronizationProcess.java:91)
    at org.openbravo.mobile.core.process.MobileImportEntryProcessorRunnable.processEntry(MobileImportEntryProcessorRunnable.java:41)
    at org.openbravo.retail.posterminal.importprocess.OrderImportEntryProcessor$OrderLoaderRunnable.processEntry(OrderImportEntryProcessor.java:59)
    at org.openbravo.service.importprocess.ImportEntryProcessor$ImportEntryProcessRunnable.run(ImportEntryProcessor.java:305)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
Caused by: org.codehaus.jettison.json.JSONException: JSONObject["id"] not found.
    at org.codehaus.jettison.json.JSONObject.get(JSONObject.java:360)
    at org.codehaus.jettison.json.JSONObject.getString(JSONObject.java:487)
    at org.openbravo.mobile.core.process.JSONPropertyToEntity.fillBobFromJSON(JSONPropertyToEntity.java:121)
    at org.openbravo.retail.posterminal.OrderLoader.createOrderLines(OrderLoader.java:1103)
    at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:259)
    ... 12 more

1. Login WebPOS and in a new ticket add "Multi-tool" product using search
2. Edit the line and click on Check stock button
3. The product card is displayed: click on Add to receipt. The product is properly added, now you have quantity = 2
4. Pay the ticket
5. Go to the backend and go to "Errors while importing window"

The order is there
No tags attached.
related to defect 0029036 closed jonalegriaesarte JSON object are arriving without warehouse id in the generated JSON object 
blocks defect 0032081 closed ranjith_qualiantech_com [SERQA 625] Incorrect behaviour of "check stock" button in line details 
Issue History
2015-10-01 08:44guillermogilNew Issue
2015-10-01 08:44guillermogilAssigned To => Retail
2015-10-01 08:44guillermogilResolution time => 1444255200
2015-10-01 08:44guillermogilTriggers an Emergency Pack => No
2015-10-01 13:45adrianromeroAssigned ToRetail => adrianromero
2015-10-02 11:39OrekariaStatusnew => scheduled
2015-10-07 11:00avicenteIssue Monitored: avicente
2015-10-07 12:12ageteIssue Monitored: agete
2015-10-07 13:34OrekariaAssigned Toadrianromero => Retail
2015-10-07 13:34OrekariaStatusscheduled => acknowledged
2015-10-15 15:23guilleaerAssigned ToRetail => guilleaer
2015-10-16 12:39hgbotCheckin
2015-10-16 12:39hgbotNote Added: 0081054
2015-10-16 12:39hgbotStatusacknowledged => resolved
2015-10-16 12:39hgbotResolutionopen => fixed
2015-10-16 12:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/85e056883c1cf9e7ab6119e56ab88d2b28fee555 [^]
2015-10-19 11:41marvintmReview Assigned To => marvintm
2015-10-19 11:41marvintmStatusresolved => closed
2015-10-19 11:41marvintmFixed in Version => RR16Q1
2015-10-19 20:44hgbotCheckin
2015-10-19 20:44hgbotNote Added: 0081101
2016-02-08 11:22OrekariaRelationship addedblocks 0032081
2016-07-28 08:15migueldejuanaRelationship addedrelated to 0029036

Notes
(0081054)
hgbot   
2015-10-16 12:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 85e056883c1cf9e7ab6119e56ab88d2b28fee555
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Fri Oct 16 09:43:19 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/85e056883c1cf9e7ab6119e56ab88d2b28fee555 [^]

Fixed issue 30999: Orders are not going to errors when order line qty is increased through stock window

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-productdetailsview.js
---
(0081101)
hgbot   
2015-10-19 20:44   
Repository: tools/automation/pi-mobile
Changeset: 016c34e8f68ae606fb6d6990d3368ae405582aa8
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Oct 19 17:53:10 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/016c34e8f68ae606fb6d6990d3368ae405582aa8 [^]

Related to issue 30999: Add test

---
M src-test/org/openbravo/test/mobile/common/selenium/javascript/TestId.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I30999_IncreaseQtyFromStockWindow.java
---