Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031509Retail ModulesWeb POSpublic2015-11-16 17:172015-12-07 11:08
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR16Q1 
guilleaer
Coding ( Testing )
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6c0bf987f86b267b90c0c88364de92f79a02b338 [^]
No
0031509: [SERQA 398] Opening the EDIT panel always focuses on the last line of the ticket
In web pos, when we have a ticket with several lines, going to the EDIT tab will always set the focus to the last line, regardless of the previously selected line.
This issue is working fine on Q3.2
Login in web pos
Create a receipt with several lines.
Select the first line (the EDIT panel will be shown with the values of the selected line)
Click on the EDIT button.
>> The last line will be autoselected and the EDIT tab values will change to show the values of the last line.
Clicking on the EDIT button should never change the selected line.
SER-QA
causes defect 0032734 closed ranjith_qualiantech_com Overall performance loss after clicking on receipt lines several times 
Issue History
2015-11-16 17:17aaroncaleroNew Issue
2015-11-16 17:17aaroncaleroAssigned To => Retail
2015-11-16 17:17aaroncaleroResolution time => 1448838000
2015-11-16 17:17aaroncaleroRegression level => Coding ( Testing )
2015-11-16 17:17aaroncaleroRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6c0bf987f86b267b90c0c88364de92f79a02b338 [^]
2015-11-16 17:17aaroncaleroTriggers an Emergency Pack => No
2015-11-18 20:30OrekariaNote Added: 0081964
2015-11-18 22:37OrekariaStatusnew => acknowledged
2015-11-20 10:26ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2015-11-20 10:26ranjith_qualiantech_comStatusacknowledged => scheduled
2015-11-27 10:39hgbotCheckin
2015-11-27 10:39hgbotNote Added: 0082409
2015-11-27 10:39hgbotStatusscheduled => resolved
2015-11-27 10:39hgbotResolutionopen => fixed
2015-11-27 10:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c3305a61a5f79b970e7c02a16a302ad6045beed5 [^]
2015-11-27 10:40hgbotCheckin
2015-11-27 10:40hgbotNote Added: 0082411
2015-12-01 11:43ageteTag Attached: SER-QA
2015-12-01 11:44ageteSummaryOpening the EDIT panel always focuses on the last line of the ticket => [SERQA 398]Opening the EDIT panel always focuses on the last line of the ticket
2015-12-01 13:39ageteSummary[SERQA 398]Opening the EDIT panel always focuses on the last line of the ticket => [SERQA 398] Opening the EDIT panel always focuses on the last line of the ticket
2015-12-07 11:08guilleaerReview Assigned To => guilleaer
2015-12-07 11:08guilleaerStatusresolved => closed
2015-12-07 11:08guilleaerFixed in Version => RR16Q1
2016-04-20 17:20OrekariaRelationship addedcauses 0032734

Notes
(0081964)
Orekaria   
2015-11-18 20:30   
Verify if this code is involved:

 if (!options.isManual) {
        // The tap was not manual. So consider the last line added
        var lines = this.model.get('order').get('lines');
        var lastLine;
        if (lines && lines.length > 0) {
          lastLine = lines.models[lines.length - 1];
        }
        if (lastLine) {
          lastLine.trigger('selected', lastLine);
        }
      }
      if (!this.disabled) {
        this.doTabChange({
          tabPanel: this.tabPanel,
          keyboard: 'toolbarscan',
          edit: true
        });
      }
(0082409)
hgbot   
2015-11-27 10:39   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c3305a61a5f79b970e7c02a16a302ad6045beed5
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Fri Nov 27 15:08:44 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c3305a61a5f79b970e7c02a16a302ad6045beed5 [^]

Fixes issue 31509 : Edit Receipt Line based on Last Selected Line

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-right.js
---
(0082411)
hgbot   
2015-11-27 10:40   
Repository: tools/automation/pi-mobile
Changeset: eab92fde96e85795b86ebf1d88e784709c6f7fab
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Fri Nov 27 15:09:04 2015 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/eab92fde96e85795b86ebf1d88e784709c6f7fab [^]

Verifies issue 31509: Added automated test 'I31509_EditReceiptLineBasedOnLastSelection'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I31509_EditReceiptLineBasedOnLastSelection.java
---