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.
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.
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
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.