Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029183Retail ModulesWeb POSpublic2015-03-08 06:422015-03-13 12:00
mtaal 
marvintm 
normalminorhave not tried
closedfixed 
5
 
RR15Q2 
Orekaria
No
0029183: Running combo unit test fails on js error
See related issue, change for that adds js code which fails in specific case.

The code:
      if (me.$.listOrderLines.collection.models.length > 0 && me.$.listOrderLines.collection.models[me.$.listOrderLines.collection.models.length - 1]._changing) {
        me.$.listOrderLines.scrollToBottom = true;
      } else if (list.models && list.length > 0 && model.id === list.models[list.length - 1].id) {
        me.$.listOrderLines.scrollToBottom = true;
      }

in this case it goes into the else but list is not defined causing a js error on js.models
Install unit/pos test modules
Login to STA-1 store
run:
OB.POS.JSUnitTest.runCombosTests()
Add additional safeguard in code so that if list parameter is not set the js code does not fail.
No tags attached.
caused by defect 0028616RR15Q2 closed migueldejuana Ticket scroll is losing the focus in some cases 
png Selection_111.png (560,316) 2015-03-08 06:42
https://issues.openbravo.com/file_download.php?file_id=7869&type=bug
png Selection_112.png (253,714) 2015-03-08 06:42
https://issues.openbravo.com/file_download.php?file_id=7870&type=bug
png
Issue History
2015-03-08 06:42mtaalNew Issue
2015-03-08 06:42mtaalAssigned To => marvintm
2015-03-08 06:42mtaalTriggers an Emergency Pack => No
2015-03-08 06:42mtaalRelationship addedcaused by 0028616
2015-03-08 06:42mtaalFile Added: Selection_111.png
2015-03-08 06:42mtaalFile Added: Selection_112.png
2015-03-08 06:54hgbotCheckin
2015-03-08 06:54hgbotNote Added: 0075270
2015-03-08 06:54hgbotStatusnew => resolved
2015-03-08 06:54hgbotResolutionopen => fixed
2015-03-08 06:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9b4bd0fb3703863a74bd4916e5db0673ee8ae523 [^]
2015-03-13 12:00OrekariaReview Assigned To => Orekaria
2015-03-13 12:00OrekariaStatusresolved => closed
2015-03-13 12:00OrekariaFixed in Version => RR15Q2

Notes
(0075270)
hgbot   
2015-03-08 06:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9b4bd0fb3703863a74bd4916e5db0673ee8ae523
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Sun Mar 08 06:54:17 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9b4bd0fb3703863a74bd4916e5db0673ee8ae523 [^]

Fixes issue 29183: Running combo unit test fails on js error
Added check that parameter list is indeed set

---
M web/org.openbravo.retail.posterminal/js/components/order.js
---