energine-cmf / energine

Energine is a content management system which allows to support web-applications (including websites) of any level of complexity. Energine is based on Energine CMF — a power full toolkit for web-application development using XML/XSLT transformations.
http://energine.org
MIT License
13 stars 3 forks source link

Feature request: New field type for price (mysql numeric(10,2)). #75

Closed andykarpov closed 9 years ago

andykarpov commented 9 years ago

What's required: 1) new field type constant in the FieldDescription, let's name it FIELD_TYPE_NUMERIC 2) xslt template for it to render with a proper html attributes, such as regexp 3) server side validation

drPavka commented 9 years ago

I propose to name it FIELD_TYPE_MONEY

andykarpov commented 9 years ago

Let's name it FIELD_TYPE_MONEY, np :) But there were a similar type is already exists - FIELD_TYPE_FLOAT. Can we use it for mysql numeric(10,2) field ? Please suggest something ;)

wildex commented 9 years ago

+1 to TYPE_NUMERIC, since it will be more generic, then TYPE_MONEY

drPavka commented 9 years ago

What's a problem?

We have TYPE_FLOAT to represent floating point fields and TYPE_MONEY type stored in NUMERIC(10,2) or DECIMAL(10,2) to represent money data.

On Wed, Feb 25, 2015 at 1:24 PM, wildex notifications@github.com wrote:

+1 to TYPE_NUMERIC, since it will be more generic, then TYPE_MONEY

— Reply to this email directly or view it on GitHub https://github.com/energine-cmf/energine/issues/75#issuecomment-75944701 .

Pavel Dubenko, web-developer