Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029437Retail ModulesWeb POSpublic2015-03-27 10:552015-04-22 10:18
marvintm 
aaroncalero 
urgentminoralways
closedfixed 
5
 
RR15Q3 
adrianromero
Production - Confirmed Stable
2014-05-29
RR14Q3
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/da0cc7cb7c4ff3941113d36f2a2099d2c08e3cc5 [^]
No
0029437: Default payment method is not correctly selected in the keyboard
In the Web POS, in the POS Terminal Type window you can select which payment method will be set by default when the user pays. If no payment method is picked, a payment method is automatically selected according to some rules.

The payment method is correctly set in the Web POS, so if a payment is done without explicitly selecting a payment method then the default one is used. However, this default payment method is not used to select a payment method button in the keyboard.

This means that when you go to pay in the Web POS, the keyboard doesn't change. So for example, if the payment method is of type cash, you don't see the coins buttons automatically shown, and you need to manually select the button for them to appear.
- Log in the Web POS.
- Create a ticket with one line.
- Click on the total button.
- Pay the ticket with the "Pay all" button. Realize that a payment of cash is created (this is correct, it means that a default payment method was picked).
- Realize that the keyboard doesn't display any coins, even though the selected payment method is of type cash. Realize also that the button for this payment method is not "green".
No tags attached.
depends on backport 0029438RR15Q1.3 closed aaroncalero Default payment method is not correctly selected in the keyboard 
depends on feature request 0028933RR16Q1 closed Retail QA: RR15Q2: Add tests for Mobile applications 
caused by defect 0026222RR14Q3 closed szapata We should clean field UPC/EAN after pressing total 
Issue History
2015-03-27 10:55marvintmNew Issue
2015-03-27 10:55marvintmAssigned To => Retail
2015-03-27 10:55marvintmRegression level => Production - Confirmed Stable
2015-03-27 10:55marvintmTriggers an Emergency Pack => No
2015-03-27 11:12marvintmAssigned ToRetail => aaroncalero
2015-03-27 11:12marvintmStatusnew => scheduled
2015-03-27 12:09OrekariaRelationship addeddepends on 0028933
2015-03-30 16:43aaroncaleroRegression date => 2014-05-29
2015-03-30 16:43aaroncaleroRegression introduced in release => RR14Q3
2015-03-30 16:43aaroncaleroRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/da0cc7cb7c4ff3941113d36f2a2099d2c08e3cc5 [^]
2015-03-30 20:12marvintmTarget VersionRR15Q2 => RR15Q3
2015-03-31 15:27hgbotCheckin
2015-03-31 15:27hgbotNote Added: 0076173
2015-03-31 15:27hgbotStatusscheduled => resolved
2015-03-31 15:27hgbotResolutionopen => fixed
2015-03-31 15:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2fce41f4a3a27aa77afd75075f6cabb20aa73247 [^]
2015-04-01 11:02hgbotCheckin
2015-04-01 11:02hgbotNote Added: 0076300
2015-04-10 15:03hgbotCheckin
2015-04-10 15:03hgbotNote Added: 0076451
2015-04-10 15:03hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2fce41f4a3a27aa77afd75075f6cabb20aa73247 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q1.3/org.openbravo.mobile.core/rev/a18f410a9b54fd962faa7b71c9bcd17d21c16e30 [^]
2015-04-16 11:34adrianromeroReview Assigned To => adrianromero
2015-04-16 11:34adrianromeroNote Added: 0076583
2015-04-16 11:34adrianromeroStatusresolved => closed
2015-04-22 10:18dmitry_mezentsevRelationship addedcaused by 0026222

Notes
(0076173)
hgbot   
2015-03-31 15:27   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 2fce41f4a3a27aa77afd75075f6cabb20aa73247
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Tue Mar 31 10:50:33 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2fce41f4a3a27aa77afd75075f6cabb20aa73247 [^]

Fixed issue 29437: Default payment method is not correctly selected in the keyboard

The problem was that the function used to clear the input area of the keyboard after tapping the total amount button was setting the status of the keyboard as empty. This was causing the default payment method to be deselected.
Now a new function has been created to clear the input area of the keyboard without modifying its status.

---
M web/org.openbravo.mobile.core/source/component/ob-keyboard.js
---
(0076300)
hgbot   
2015-04-01 11:02   
Repository: tools/automation/pi-mobile
Changeset: 44fe68a1d1ed5d1d387b87204379b763b0ff05ed
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Apr 01 09:59:02 2015 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/44fe68a1d1ed5d1d387b87204379b763b0ff05ed [^]

Related to issue 29437: Adjust tests to take into account the payment selected by default

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I26806_CashupTotalNotShown.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/LayawayVerifyPaymentsInformation.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/CreateSalePayWithCard.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/Keypad_PaymentMethodsEnableState.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/Keypad_PaymentSwitchingButton.java
---
(0076451)
hgbot   
2015-04-10 15:03   
Repository: retail/backports/3.0RR15Q1.3/org.openbravo.mobile.core
Changeset: a18f410a9b54fd962faa7b71c9bcd17d21c16e30
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Tue Mar 31 10:50:33 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q1.3/org.openbravo.mobile.core/rev/a18f410a9b54fd962faa7b71c9bcd17d21c16e30 [^]

Fixed issue 29437: Default payment method is not correctly selected in the keyboard

The problem was that the function used to clear the input area of the keyboard after tapping the total amount button was setting the status of the keyboard as empty. This was causing the default payment method to be deselected.
Now a new function has been created to clear the input area of the keyboard without modifying its status.

---
M web/org.openbravo.mobile.core/source/component/ob-keyboard.js
---
(0076583)
adrianromero   
2015-04-16 11:34   
Verified