WebVella / WebVella-ERP

Free and open-source pluggable ERP and CRM software based on ASP.NET Core 8, RazorPages and PostgreSQL . Targets Linux or Windows as host OS.
https://webvella.com/documents/developer/introduction/overview
Other
1.22k stars 460 forks source link

Incorrect data type for the field types #18

Closed bzashev closed 9 years ago

bzashev commented 9 years ago

When in the field meta there is defaultValue, minValue, maxValue, decimalPlaces, dates and etc, the data is stored in the database as string, which is incorrect. It should be in the same data type as the expected field value. Example: Percent field -> defaultValue,minValue and maxValue should be stored as decimal values are stored, not as strings

bzashev commented 9 years ago

The data type in the field meta json should also correspond. Example: defaultValue for a number should be returned as a number.

rumen-yankov commented 9 years ago

Cannot simulate the issue. Probably already fixed.