Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037348
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminoralways2017-11-22 07:322017-12-04 17:16
ReporterguilleaerView Statuspublic 
Assigned Toguilleaer 
PrioritynormalResolutionfixedFixed in VersionRR18Q1
StatusclosedFix in branchFixed in SCM revision0c8e957224fa
ProjectionnoneETAnoneTarget VersionRR18Q1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037348: After execute the hook OBPOS_PreShowPane web POS is not listening tabName changes done in the hook implementation

DescriptionAfter execute the hook OBPOS_PreShowPane web POS is not listening tabName changes done in the hook implementation
Steps To Reproducecreate an implementation for hook OBPOS_PreShowPane and try to change the tab which is being shown.

It is not working

example:

enyo.kind({
  name: 'OB.OBPOSPointOfSale.UI.TabBrowseGal',
  kind: 'OB.UI.TabPane',
  components: [{
    kind: 'OB.UI.ProductBrowserGAL',
    name: 'catalogTabContentGal'
  }]
});

enyo.kind({
  name: 'OB.UI.ProductBrowserGAL',
  useCharacteristics: true,
  style: 'background-color: #ffffff;color: black;height: 612px; margin: 5px;',
  components: [{
    kind: 'OB.UI.FlexComponent',
    flexDirection: 'column',
    flexContent: [{content: 'Categories'}, {content: 'Products'}]
  }],
  executeOnShow: function () {
    console.log('executeOnShow ProductBrowserGAL');
  }
});

OB.OBPOSPointOfSale.UI.RightToolbarPane.prototype.kindComponents.push({
  kind: 'OB.OBPOSPointOfSale.UI.TabBrowseGal',
  name: 'catalogGal'
});

OB.UTIL.HookManager.registerHook('OBPOS_PreShowPane', function (args, callbacks) {
  //TODO Here the correct condition
  if (args.tabName === 'catalog') {
    args.tabName = 'catalogGal';
  }
  OB.UTIL.HookManager.callbackExecutor(args, callbacks);
});
Proposed SolutionRead the object returned by hook
TagsNo tags attached.
Attached Filesdiff file icon issue_37348.diff [^] (851 bytes) 2017-11-22 07:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0100674)
hgbot (developer)
2017-11-22 20:32

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0c8e957224fa3a06be9e66d4776ea314a4805748
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Wed Nov 22 10:37:19 2017 +0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c8e957224fa3a06be9e66d4776ea314a4805748 [^]

Fixed issue 37348: Returned data from hook OBPOS_PreShowPane is readed

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-right.js
---
(0100924)
migueldejuana (developer)
2017-12-04 17:16

Reviewed

- Issue History
Date Modified Username Field Change
2017-11-22 07:32 guilleaer New Issue
2017-11-22 07:32 guilleaer Assigned To => guilleaer
2017-11-22 07:32 guilleaer Triggers an Emergency Pack => No
2017-11-22 07:33 guilleaer File Added: issue_37348.diff
2017-11-22 07:55 guilleaer Status new => scheduled
2017-11-22 20:32 hgbot Checkin
2017-11-22 20:32 hgbot Note Added: 0100674
2017-11-22 20:32 hgbot Status scheduled => resolved
2017-11-22 20:32 hgbot Resolution open => fixed
2017-11-22 20:32 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c8e957224fa3a06be9e66d4776ea314a4805748 [^]
2017-12-04 17:16 migueldejuana Review Assigned To => migueldejuana
2017-12-04 17:16 migueldejuana Note Added: 0100924
2017-12-04 17:16 migueldejuana Status resolved => closed
2017-12-04 17:16 migueldejuana Fixed in Version => RR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker