Config Item Numeric Classs

Moderator: crythias

Post Reply
jtorcate
Znuny newbie
Posts: 1
Joined: 23 Aug 2018, 17:26
Znuny Version: 6.0.10
Real Name: José G. Torcate
Company: BCV

Config Item Numeric Classs

Post by jtorcate »

Hi.

Is it there a way of using a numeric datatype defining a new class for the Ci's (Decimal numbers). AFAIK there are only these datatypes.
* Text
* Textarea
* Integer
* Date
* DateTime
* Customer
* CustomerCompany
* GeneralCatalog
* Dummy

My intention is to create a field for register the Configuration Item Unitary Cost, in order to charge every client department with the accurate cost.
I'm looking in and out (Google, Github, etc.) but documentation is so poor about it. I just can't use the Integer datatype because of the fractions. I need to use a numeric field to register integer and, at least, 2 decimal places.

Thanks in advance.
christianclavet
Znuny newbie
Posts: 75
Joined: 27 Aug 2018, 13:50
Znuny Version: Community
Real Name: Christian Clavet
Company: Tact Group

Re: Config Item Numeric Classs

Post by christianclavet »

Hi, Do you need to calculate values for them or just showing them?

I would use a string(text), and if you need to calculate the values, you will need to convert the string from your script.
----------------------------------------------
OTRS Community 6.0.11
Debian 9.0

MariaDB
Post Reply