diff --git a/ayanova/src/api/initialize.js b/ayanova/src/api/initialize.js index 98e14c69..e5130fc4 100644 --- a/ayanova/src/api/initialize.js +++ b/ayanova/src/api/initialize.js @@ -782,7 +782,7 @@ export default function initialize() { //TODO: also need the other locale settings such as number and date formats etc to be added at server window.$gz.store.commit("setLocale", { decimalSeparator: ".", - currencyName: "USD", + currencyName: "EUR", hour12: true, // shortDate: "YYYY-MM-DD", // shortTime: "hh:mm:ss A", diff --git a/ayanova/src/components/currency-control.vue b/ayanova/src/components/currency-control.vue index b3f16c7e..c9da4e56 100644 --- a/ayanova/src/components/currency-control.vue +++ b/ayanova/src/components/currency-control.vue @@ -1,11 +1,13 @@ diff --git a/ayanova/src/main.js b/ayanova/src/main.js index 8d67c0e5..c900e82b 100644 --- a/ayanova/src/main.js +++ b/ayanova/src/main.js @@ -36,6 +36,7 @@ import tagPicker from "./components/tag-picker.vue"; import customFieldsControl from "./components/custom-fields-control.vue"; import currencyControl from "./components/currency-control.vue"; import errorhandler from "./api/errorhandler"; +import VCurrencyField from "./components/VCurrencyField"; ///////////////////////////////////////////////////////////////// // LIBS AND GLOBAL ITEMS @@ -180,6 +181,7 @@ Vue.component("gz-time-picker", timeControl); Vue.component("gz-tag-picker", tagPicker); Vue.component("gz-custom-fields", customFieldsControl); Vue.component("gz-currency", currencyControl); +Vue.component("v-currency-field", VCurrencyField); //3rd party components Vue.use(VueCurrencyInput); diff --git a/ayanova/src/views/test-inventory-widget-edit.vue b/ayanova/src/views/test-inventory-widget-edit.vue index dc03443f..dfa1113c 100644 --- a/ayanova/src/views/test-inventory-widget-edit.vue +++ b/ayanova/src/views/test-inventory-widget-edit.vue @@ -96,12 +96,11 @@ :rules="[form().decimalValid(this, 'dollarAmount')]" :error-messages="form().serverErrors(this, 'dollarAmount')" @change="onChange('dollarAmount')" - > --> + >v-model="obj.dollarAmount" --> + v-currency-field + + DOLLAR AMOUNT: {{ obj.dollarAmount }}