add the 'currency' custom field type

This commit is contained in:
Haben Amare 2020-05-25 14:59:32 +00:00
parent 351d9d0c95
commit 3cf6ed916f
5 changed files with 56 additions and 2 deletions

View file

@ -22,7 +22,7 @@ CustomFields.attachSchema(
* type of the custom field
*/
type: String,
allowedValues: ['text', 'number', 'date', 'dropdown'],
allowedValues: ['text', 'number', 'date', 'dropdown', 'currency'],
},
settings: {
/**
@ -30,6 +30,10 @@ CustomFields.attachSchema(
*/
type: Object,
},
'settings.currencySymbol': {
type: String,
optional: true,
},
'settings.dropdownItems': {
/**
* list of drop down items objects