Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028628Retail ModulesWeb POSpublic2015-01-15 15:132015-02-19 16:47
marvintm 
marvintm 
normalminorhave not tried
closedfixed 
5
 
 
migueldejuana
No
0028628: The header and footer components of the ticket should be extensible
There are already several UI components in the Web POS such as the menu, the edit panel, or the receipt properties popup, which are extensible via a global array which can be modified by modules to add new components inside a UI structure.

The same approach should be adopted in the Receipt header and footer components, so that modules can add labels or buttons to both places in the UI.

The arrays should be added in a way in which listeners can also be added (via events) so that in case the receipt properties change the added components can notice it and update themselves.
- Try to customize the receipt header or footer and realize that this is not possible.
A global array in which new components can be added should be added to the component, which a corresponding listener system which can be used by these components to detect changes in the receipt.
No tags attached.
Issue History
2015-01-15 15:13marvintmNew Issue
2015-01-15 15:13marvintmAssigned To => marvintm
2015-01-15 15:13marvintmTriggers an Emergency Pack => No
2015-01-16 03:09Guillaume_JumpIssue Monitored: Guillaume_Jump
2015-02-09 09:25hgbotCheckin
2015-02-09 09:25hgbotNote Added: 0074268
2015-02-09 09:25hgbotStatusnew => resolved
2015-02-09 09:25hgbotResolutionopen => fixed
2015-02-09 09:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c96fc4b3fe9df0c63e4f6a5d6bba64468893807c [^]
2015-02-09 19:30OrekariaNote Added: 0074293
2015-02-09 19:30OrekariaStatusresolved => new
2015-02-09 19:30OrekariaResolutionfixed => open
2015-02-09 19:35OrekariaNote Edited: 0074293bug_revision_view_page.php?bugnote_id=0074293#r7643
2015-02-11 09:30hgbotCheckin
2015-02-11 09:30hgbotNote Added: 0074347
2015-02-11 09:30hgbotStatusnew => resolved
2015-02-11 09:30hgbotResolutionopen => fixed
2015-02-11 09:30hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c96fc4b3fe9df0c63e4f6a5d6bba64468893807c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6973c0c617a89ba70c5ce704d16f42b4405b033f [^]
2015-02-11 14:02hgbotCheckin
2015-02-11 14:02hgbotNote Added: 0074353
2015-02-19 16:38migueldejuanaNote Added: 0074671
2015-02-19 16:47migueldejuanaReview Assigned To => migueldejuana
2015-02-19 16:47migueldejuanaStatusresolved => closed

Notes
(0074268)
hgbot   
2015-02-09 09:25   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c96fc4b3fe9df0c63e4f6a5d6bba64468893807c
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Mon Feb 09 09:14:49 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c96fc4b3fe9df0c63e4f6a5d6bba64468893807c [^]

Fixed issue 28628: The header and footer components of the ticket should be extensible

Added an OrderFooter component to be able to add components to the bottom of the ticket.
The OrderFooter component includes an array to contain new components.
Refactored the OrderHeader to include two arrays of components, one for labels and the second for buttons. These arrays can be extended from other modules.

---
M web/org.openbravo.retail.posterminal/js/components/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/ps-receiptview.js
---
(0074293)
Orekaria   
2015-02-09 19:30   
(edited on: 2015-02-09 19:35)
Test logic must be updated
Tests fail because the fix changes the UI structure

(0074347)
hgbot   
2015-02-11 09:30   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 6973c0c617a89ba70c5ce704d16f42b4405b033f
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Feb 11 09:28:51 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6973c0c617a89ba70c5ce704d16f42b4405b033f [^]

Fixed issue 28628: Changed component names for a better naming logic during tests

---
M web/org.openbravo.retail.posterminal/js/components/order.js
---
(0074353)
hgbot   
2015-02-11 14:02   
Repository: tools/automation/pi-mobile
Changeset: f1263d3fe6993b065ae3acc3917918a7964d9307
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Feb 11 09:27:58 2015 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/f1263d3fe6993b065ae3acc3917918a7964d9307 [^]

Related to issue 28628: Changed component testIds to match the new UI structure

---
M src-test/org/openbravo/test/mobile/common/selenium/javascript/TestId.java
---
(0074671)
migueldejuana   
2015-02-19 16:38   
Tested and reviewed in dc521597d18e