Openbravo Issue Tracking System - Retail Modules
View Issue Details
0022191Retail ModulesWeb POSpublic2012-11-02 10:492012-12-21 09:37
caristu 
marvintm 
urgentmajoralways
closedfixed 
5
 
RMP18RMP18 
No
0022191: Error if backend organization/warehouse are different from webpos user organization/warehouse
If we are using the ERP and the WebPOS in the same browser instance, and we are logged in the ERP with a user that has a default warehouse or organization different from those established for the WebPOS user, a success message appears in WebPOS but the receipt is not created in the backend.

For example, with the following data:
- ERP Organization: F&B España - Región Norte
- WEbPOs Organization: Tienda

The following error message is appearing in the backend: "ERROR org.openbravo.base.exception.OBException - Entity POS/00037 - 02-11-2012 - Alimentos y Supermercados S.A - 2.04 - 02-11-2012 - - 2.04 (FIN_Payment_ScheduleDetail) with organization F&B España - Región Norte references an entity POS/00037 - 02-11-2012 - Alimentos y Supermercados S.A - 2.04 through its property paymentDetails but this referenced entity belongs to an organization Tienda which is not part of the natural tree of F&B España - Región Norte"
1) Using the same browser instance, log in the WebPOS with user "A"
2) Log in Openbravo ERP and set the current organization and/or warehouse different from those established in the WebPOS configuration for user "A".
3) In WebPOS, create a new receipt and pay it. A success message will appear.
4) Go to the ERP, and verify that the sales order has not been created.
security
related to defect 0022158RMP17 closed jecharri Faillure in cash up 
related to defect 0021163 closed marvintm Login in the BO or the Web POS with a wrong User 
Issue History
2012-11-02 10:49caristuNew Issue
2012-11-02 10:49caristuAssigned To => adrianromero
2012-11-02 10:50caristuNote Added: 0053972
2012-11-05 16:47adrianromeroSeveritymajor => critical
2012-11-05 16:48adrianromeroRelationship addedrelated to 0022158
2012-11-09 14:56alostaleRelationship addedrelated to 0021163
2012-11-09 14:56alostaleTag Attached: security
2012-11-09 14:56alostaleStatusnew => scheduled
2012-11-09 14:56alostaleAssigned Toadrianromero => marvintm
2012-11-09 14:56alostalefix_in_branch => pi
2012-12-05 19:45adrianromeroSeveritycritical => major
2012-12-05 19:45adrianromeroTarget Version => RMP18
2012-12-05 19:45adrianromerofix_in_branchpi =>
2012-12-19 10:40hgbotCheckin
2012-12-19 10:40hgbotNote Added: 0055065
2012-12-19 10:40hgbotStatusscheduled => resolved
2012-12-19 10:40hgbotResolutionopen => fixed
2012-12-19 10:40hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/820bea56f1b0e5bc99ee7b7ead4e3f88daab2443 [^]
2012-12-20 17:57hgbotCheckin
2012-12-20 17:57hgbotNote Added: 0055133
2012-12-21 09:37guilleaerNote Added: 0055146
2012-12-21 09:37guilleaerStatusresolved => closed
2012-12-21 09:37guilleaerFixed in Version => RMP18

Notes
(0053972)
caristu   
2012-11-02 10:50   
Support Ticket: 17776
Resolution Time: 5/12/2012
(0055065)
hgbot   
2012-12-19 10:40   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 820bea56f1b0e5bc99ee7b7ead4e3f88daab2443
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Dec 19 10:40:44 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/820bea56f1b0e5bc99ee7b7ead4e3f88daab2443 [^]

Fixed issue 22191. The context will be set to avoid creating objects in a wrong client/org/user

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0055133)
hgbot   
2012-12-20 17:57   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3a0f078347977c4da32e4352145819a814b97082
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Dec 20 17:55:43 2012 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3a0f078347977c4da32e4352145819a814b97082 [^]

related to issue 22191: Orders are processed correctly when login is done offline and also when the page is refreshed

---
M web/org.openbravo.retail.posterminal/index.html
M web/org.openbravo.retail.posterminal/js/model/terminal.js
---
(0055146)
guilleaer   
2012-12-21 09:37   
tested & verified