mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
Merge pull request #50 from nhedger/master
Add missing currency code to customer create/edit form
This commit is contained in:
@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user