Add missing currency code to customer create form

This commit is contained in:
Nicolas Hedger
2019-12-12 14:37:16 +01:00
committed by GitHub
parent 92f754e888
commit b06fc5f0b9

View File

@ -61,6 +61,7 @@
<base-select <base-select
v-model="currency" v-model="currency"
:options="currencies" :options="currencies"
:custom-label="currencyNameWithCode"
:allow-empty="false" :allow-empty="false"
:searchable="true" :searchable="true"
:show-labels="false" :show-labels="false"
@ -435,6 +436,9 @@ export default {
} }
}, },
methods: { methods: {
currencyNameWithCode ({name, code}) {
return `${code} - ${name}`
},
...mapActions('customer', [ ...mapActions('customer', [
'addCustomer', 'addCustomer',
'fetchCustomer', 'fetchCustomer',