[Vtigercrm-commits] [vtiger development] #7620: Why modules with products have tables located inside functions....
vtiger development
vtiger-tickets at trac.vtiger.com
Wed Dec 12 00:57:52 PST 2012
#7620: Why modules with products have tables located inside functions....
------------------------+---------------------------------------------------
Reporter: opensaas | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: 6.0.0
Component: vtigercrm | Version: 6.0 ea
Severity: Medium | Keywords:
------------------------+---------------------------------------------------
In VTiger are few functions [ getInventoryTaxType,
getInventoryCurrencyInfo in include/utils/InventoryUtils.php ] dedicated
for modules with products like:[[BR]]
Quotes, Purchase Order, Sales Order, Invoice[[BR]]
which have "configuration tables" declared inside the function`s code. And
only these four modules are considered there.[[BR]]
[[BR]]
It is big problem if a developer wants to create own module with products,
because this solution enforce him to either overwrite core crm files or to
try to bypass it by copying and modifying many other files ( because these
functions are used in almost each kind of view displaying records :
detail, list, related etc )
Is it possible to:
create special database table with listed modules with products
or
add new column in vtiger_tab to decide if module has or not products ?
It would be much easier to configure this type of module inside the
database, instead of adding it to functions manually like it is happening
now.
After this you can slightly modify function just to check if module have
products (using database) and after this just take variables from core
file of that module ( because modules have variables: "table_name" and
"table_index" )
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7620>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list