Quantcast
Channel: Dolibarr Forum :: Topics in Category: Creation of a New Module
Viewing all articles
Browse latest Browse all 440

Module Development using Module Builder - by: RichE

$
0
0
Dolibarr 8.0.2. Using Module Builder, I created a module and added an object (location) such that I can record a few hundred sites that my customer has. I've edited ../htdocs/customer/mymodule/location.class.php to setup the fields array as ..


Problem one...
When I list the locations or display the location card the coordinates are fine, eg.
Third Party: Oriel Systems
Latitude/y: 51.450485
Longitude/x: -2.10212

But when I modify, the coordinates are truncated to two decimals, in the edit box (my coordinate sql column type is double(9,6).

Problem two...
When I list the locations I cannot correctly order by, or filter on, the third party. The box in the title of the list is taking the integer value for fk_soc rather than the result of indexing through llx_societe.rowid. I have tried adding 'foreignkey'=>'llx_societe.rowid' attribute to the fk_soc definition but that seems to have no effect.

Viewing all articles
Browse latest Browse all 440

Trending Articles