Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045749Retail ModulesMobile Warehouse operationspublic2021-01-19 11:532021-01-25 06:52
sebastien_liron 
Retail 
normalminoralways
newopen 
30Openbravo Appliance 14.04
pi 
pi 
No
0045749: Customizing of InventoryCountInfoProvider
Discsussion between service and product :

Request :

So we have a design to add some customized field for inventory count tasks ( expiration dates in particular ) on the front end ( AWO front )

During the development we think we need to customize InventoryCountInfoProvider to get this data in particular.
It seems that it is not customizable as it is ( there is only one method exec )

What we are doing now :
change the url in the front end constant OBAWO.Constants.InventoryCountInfoProvider to target a custom process that will be a copy paste of InventoryCountInfoProvider with our customizations.


ANSWER :



You are right, right now it is not possible to extend this class.

I would say that makes sense to do this class more customizable. I think this class should allow

1) Extend the query as we always do using properties extensor
2) capacity to execute other queries
3) capacity to extend the response from a hook

I think we should report that as an FR and someone should decide when and who can take it. I think it can be done in 1 or 2 days and applies to all "providers" used by inventory count

For the moment what you suggest is OK but as you mention is not the best option
 - add some customized field for inventory count tasks ( expiration dates in particular ) on the front end ( AWO front ).
- need to customize InventoryCountInfoProvider to get this data in particular.
I would say that makes sense to do this class more customizable. I think this class should allow

1) Extend the query as we always do using properties extensor
2) capacity to execute other queries
3) capacity to extend the response from a hook
No tags attached.
Issue History
2021-01-19 11:53sebastien_lironNew Issue
2021-01-19 11:53sebastien_lironAssigned To => Retail
2021-01-19 11:53sebastien_lironResolution time => 1622498400
2021-01-19 11:53sebastien_lironTriggers an Emergency Pack => No
2021-01-19 12:34sebastien_lironDescription Updatedbug_revision_view_page.php?rev_id=22043#r22043
2021-01-25 06:52marvintmResolution time1622498400 =>

There are no notes attached to this issue.