Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031148Retail ModulesWeb POSpublic2015-10-14 10:522016-02-03 20:03
VictorVillar 
jorge-garcia 
urgentmajoralways
closedfixed 
5
 
RR16Q2 
marvintm
No
0031148: Necessary to add a hook in render category
Necessary to add a hook in render category.

They are going to split the product categories per each pos terminal.
OB.MobileApp.model.hookManager.registerHook('OBPOS_RenderCategory', function(args, callbacks) {
if (OB.Model.PCatTPV.allowedCategories.indexOf(args.category.model.id) < 0) {
args.category.destroy();
}
OB.MobileApp.model.hookManager.callbackExecutor(args, callbacks);
});
See attached
Update documentation
No tags attached.
? rendercategory.js (1,170) 2016-01-28 13:58
https://issues.openbravo.com/file_download.php?file_id=8976&type=bug
Issue History
2015-10-14 10:52VictorVillarNew Issue
2015-10-14 10:52VictorVillarAssigned To => Retail
2015-10-14 10:52VictorVillarResolution time => 1447110000
2015-10-14 10:52VictorVillarTriggers an Emergency Pack => No
2015-10-14 10:52VictorVillarIssue Monitored: networkb
2015-10-14 12:13OrekariaStatusnew => acknowledged
2015-10-22 14:38OrekariaStatusacknowledged => scheduled
2015-10-22 14:40OrekariaNote Added: 0081214
2015-10-22 14:40OrekariaStatusscheduled => feedback
2015-10-23 10:16VictorVillarStatusfeedback => new
2016-01-28 13:58OrekariaFile Added: rendercategory.js
2016-01-28 18:03OrekariaStatusnew => acknowledged
2016-01-29 14:21OrekariaProposed Solution updated
2016-01-29 14:42jorge-garciaAssigned ToRetail => jorge-garcia
2016-01-29 14:42jorge-garciaStatusacknowledged => scheduled
2016-02-03 08:53hgbotCheckin
2016-02-03 08:53hgbotNote Added: 0083882
2016-02-03 08:53hgbotStatusscheduled => resolved
2016-02-03 08:53hgbotResolutionopen => fixed
2016-02-03 08:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a4d3d576ac9ee1e4412329573ecffb6c813d76fe [^]
2016-02-03 08:54hgbotCheckin
2016-02-03 08:54hgbotNote Added: 0083883
2016-02-03 20:03marvintmReview Assigned To => marvintm
2016-02-03 20:03marvintmStatusresolved => closed
2016-02-03 20:03marvintmFixed in Version => RR16Q2

Notes
(0081214)
Orekaria   
2015-10-22 14:40   
Where should be added? file, line. better provide a diff
(0083882)
hgbot   
2016-02-03 08:53   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a4d3d576ac9ee1e4412329573ecffb6c813d76fe
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 29 15:06:48 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a4d3d576ac9ee1e4412329573ecffb6c813d76fe [^]

Fixed issue 31148: Necessary to add a hook in render category

Hook has been added

---
M web/org.openbravo.retail.posterminal/js/components/rendercategory.js
---
(0083883)
hgbot   
2016-02-03 08:54   
Repository: tools/automation/pi-mobile
Changeset: 4a69ae7490865e499064ed53b9a30d30cecf3af1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 02 14:07:41 2016 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/4a69ae7490865e499064ed53b9a30d30cecf3af1 [^]

Verifies issue 31148: Necessary to add a hook in render category

Added test I31148_HookRenderCategory.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I31148_HookRenderCategory.java
---