diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 068b09c2..2eed6684 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -14,9 +14,21 @@ TODO CLIENT STUFF TODO NEXT - ADHD planning for this stuff: break into small actionable chunks then do it Find out how to do a currency and other types of numeric input +Make the currency and numeric fields work, then do the next stuff below: + +Currency field can be a v-text field with +Prefix set to the currency symbol and v-validate to ensure it's entered correctly +You can use the object form: +v-validate="{ required: true, decimal: [2, ','] }" + +https://github.com/baianat/vee-validate/commit/d9a3e97846aa47074e11bda4499ad539807ef0aa#commitcomment-25381793 + + + + + Figure out why custom fields don't exist in widgets test data and put it there so can code it. Put all the widget fields on the form Check rights when navigating to the form diff --git a/ayanova/src/views/inventory-widget-edit.vue b/ayanova/src/views/inventory-widget-edit.vue index 32522cff..4f1fc9b5 100644 --- a/ayanova/src/views/inventory-widget-edit.vue +++ b/ayanova/src/views/inventory-widget-edit.vue @@ -39,14 +39,26 @@ - + + + + >>"); + console.log(obj.dollarAmount2); + alert(obj.dollarAmount2); this.$validator.validateAll(); + + }, + localeDecimalSeparator(){ + return ','; + }, + localeCurrencySymbol(){ + return 'Eur'; + }, + clear(){ + console.log(this.data().obj.dollarAmount2); + alert(data().obj.dollarAmount2); } } };