Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035978Retail ModulesWeb POSpublic2017-05-11 17:232017-05-30 18:08
migueldejuana 
migueldejuana 
normalminoralways
closedfixed 
5
 
RR17Q3 
marvintm
No
0035978: I35670_ServiceMultiSelectionNotGroup is failing
I35670_ServiceMultiSelectionNotGroup is failing because we are trying to to save the product(Service) 2 times.

In this test, when we add Delivery Service, we are adding 2 lines to the receipt. We are calling to createLine in parallel and saveIfnew is called for the same product at the same time so we try to insert 2 times in m_product this service. We get an error because the second time the product is already there.
See Description
saveIfNew must do the get and save in one transaction.
No tags attached.
Issue History
2017-05-11 17:23migueldejuanaNew Issue
2017-05-11 17:23migueldejuanaAssigned To => migueldejuana
2017-05-11 17:23migueldejuanaTriggers an Emergency Pack => No
2017-05-16 10:27hgbotCheckin
2017-05-16 10:27hgbotNote Added: 0096613
2017-05-16 10:27hgbotStatusnew => resolved
2017-05-16 10:27hgbotResolutionopen => fixed
2017-05-16 10:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f94c03c6bca7d51d5cbb20b486ccf36ace1a8a2e [^]
2017-05-30 18:08marvintmReview Assigned To => marvintm
2017-05-30 18:08marvintmStatusresolved => closed
2017-05-30 18:08marvintmFixed in Version => RR17Q3

Notes
(0096613)
hgbot   
2017-05-16 10:27   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f94c03c6bca7d51d5cbb20b486ccf36ace1a8a2e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue May 16 10:27:23 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f94c03c6bca7d51d5cbb20b486ccf36ace1a8a2e [^]

Fixed issue 0035978: I35670_ServiceMultiSelectionNotGroup is failing

- saveIfNew must do the get and save in one transaction.
- Add local attr to getInTransaction function

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---