From 3cf6ed916f4fd4c8e6e826ed4af1c2dd4c965110 Mon Sep 17 00:00:00 2001 From: Haben Amare Date: Mon, 25 May 2020 14:59:32 +0000 Subject: add the 'currency' custom field type --- models/customFields.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/customFields.js b/models/customFields.js index cc798b16..435ebabb 100644 --- a/models/customFields.js +++ b/models/customFields.js @@ -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 -- cgit v1.2.3-1-g7c22