Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030803Retail ModulesWeb POSpublic2015-09-09 15:492015-09-29 09:24
aaroncalero 
mtaal 
normalminoralways
closedfixed 
5
pi 
RR15Q4 
guilleaer
No
0030803: The Web POS Use Modal instead of dropdown in Sales Reprentative preference cannot be used with automatic roles
The Web POS Use Modal instead of dropdown in Sales Reprentative preference controls if the field to add a sales representative to a ticket in WebPOS is done via a combo box or a modal popup.
When the role of the logged user is an automatic role, the preference is always considered to be true and the modal popup is used.
Login in https://livebuilds.openbravo.com/retail_pi_pgsql/ [^] and verify that the value of the preference is N for the White Valley client.
Login in WebPOS with an automatic-role user (vallblanca, Openbravo, demoUser) and verify that, on the receipt properties popup (Menu > Receipt Properties) a button to display the modal popup is shown on the Sales Representative field, even if the preference is set to N.
The code using the preference is the following:
      if (!OB.MobileApp.model.hasPermission(this.permissionOption)) {
        this.parent.parent.parent.hide();
      }
Which doesn't check if the role of the user is manual or not. Change it with:
      if (!OB.MobileApp.model.hasPermission(this.permissionOption, true)) {
        this.parent.parent.parent.hide();
      }
To verify the preference even if the role is automatic.
No tags attached.
Issue History
2015-09-09 15:49aaroncaleroNew Issue
2015-09-09 15:49aaroncaleroAssigned To => Retail
2015-09-09 15:49aaroncaleroTriggers an Emergency Pack => No
2015-09-09 15:50aaroncaleroReproducibilityhave not tried => always
2015-09-16 10:38guillermogilResolution time => 1442872800
2015-09-21 23:57mtaalAssigned ToRetail => mtaal
2015-09-23 12:53hgbotCheckin
2015-09-23 12:53hgbotNote Added: 0080577
2015-09-23 12:53hgbotStatusnew => resolved
2015-09-23 12:53hgbotResolutionopen => fixed
2015-09-23 12:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5338904fa44ea9b5362f0eac3a64d8986231e89b [^]
2015-09-23 12:53hgbotCheckin
2015-09-23 12:53hgbotNote Added: 0080578
2015-09-23 12:54hgbotCheckin
2015-09-23 12:54hgbotNote Added: 0080583
2015-09-23 12:54hgbotCheckin
2015-09-23 12:54hgbotNote Added: 0080585
2015-09-23 12:54hgbotCheckin
2015-09-23 12:54hgbotNote Added: 0080587
2015-09-23 12:54hgbotCheckin
2015-09-23 12:54hgbotNote Added: 0080589
2015-09-26 23:43OrekariaReview Assigned To => guilleaer
2015-09-29 09:24guilleaerNote Added: 0080684
2015-09-29 09:24guilleaerStatusresolved => closed
2015-09-29 09:24guilleaerFixed in Version => RR15Q4

Notes
(0080577)
hgbot   
2015-09-23 12:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 5338904fa44ea9b5362f0eac3a64d8986231e89b
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 00:20:30 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/5338904fa44ea9b5362f0eac3a64d8986231e89b [^]

Fixes issue 30803: The Web POS Use Modal instead of dropdown in Sales Reprentative preference cannot be used with automatic roles
Handle automatic roles also in showing the combo

---
M web/org.openbravo.retail.posterminal/js/components/modalreceiptproperties.js
M web/org.openbravo.retail.posterminal/js/components/salesrepresentative.js
---
(0080578)
hgbot   
2015-09-23 12:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3ca8b58961dfd35ae9b1d71c2249f4af7ca877ba
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 00:21:56 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3ca8b58961dfd35ae9b1d71c2249f4af7ca877ba [^]

Related to issue 30803: The Web POS Use Modal instead of dropdown in Sales Reprentative preference cannot be used with automatic roles
Code format commit

---
M web/org.openbravo.retail.posterminal/js/components/salesrepresentative.js
---
(0080583)
hgbot   
2015-09-23 12:54   
Repository: tools/automation/pi-mobile
Changeset: f6898a68253f4b252980884f5fbe8a0d3531b7db
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 00:12:20 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/f6898a68253f4b252980884f5fbe8a0d3531b7db [^]

Related to issue 30804, related to issue 30803: The sales representative combo on the receipt properties popup is never loaded
Added test for showing modal and combo and setting sales rep

---
M src-test/org/openbravo/test/mobile/common/selenium/javascript/EnyoNode.java
M src-test/org/openbravo/test/mobile/common/selenium/javascript/TestId.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I30804_SetSalesRepCombo.java
---
(0080585)
hgbot   
2015-09-23 12:54   
Repository: tools/automation/pi-mobile
Changeset: d99250add999dc8e8b1b93cd5932ef6c7fc7678d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 00:35:19 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d99250add999dc8e8b1b93cd5932ef6c7fc7678d [^]

Related to issue 30804, related to issue 30803: The sales representative combo on the receipt properties popup is never loaded
Remove system.err, check import entries

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I30804_SetSalesRepCombo.java
---
(0080587)
hgbot   
2015-09-23 12:54   
Repository: tools/automation/pi-mobile
Changeset: 705f14a67f202ff9dafd5666888a082df86d52c3
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 07:24:14 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/705f14a67f202ff9dafd5666888a082df86d52c3 [^]

Related to issue 30804, related to issue 30803: The sales representative combo on the receipt properties popup is never loaded
Moved test, changes to handle oracle, adapted rejectquotations to handle returned value from getcontent

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/RejectQuotations.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I30804_SetSalesRepCombo.java
R src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/I30804_SetSalesRepCombo.java
---
(0080589)
hgbot   
2015-09-23 12:54   
Repository: tools/automation/pi-mobile
Changeset: 48807c49debff424da91cd61ee04e6be04530b39
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed Sep 23 10:32:24 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/48807c49debff424da91cd61ee04e6be04530b39 [^]

Related to issue 30804, related to issue 30803: The sales representative combo on the receipt properties popup is never loaded
Change as for combos the value is returned not the label text

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/RejectQuotations.java
---
(0080684)
guilleaer   
2015-09-29 09:24   
code reviewed and tested