mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-30 07:44:41 +00:00
setup billing profile redirect
This commit is contained in:
@@ -367,6 +367,7 @@
|
|||||||
...mapGetters([
|
...mapGetters([
|
||||||
'countries',
|
'countries',
|
||||||
'config',
|
'config',
|
||||||
|
'user',
|
||||||
]),
|
]),
|
||||||
pageTitle() {
|
pageTitle() {
|
||||||
return {
|
return {
|
||||||
@@ -690,6 +691,10 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.invoice.invoice_type = this.$route.query.type
|
this.invoice.invoice_type = this.$route.query.type
|
||||||
|
|
||||||
|
if (this.user && ! this.user.data.attributes.has_billing_profile) {
|
||||||
|
this.$router.push({name: 'BillingProfileSetUp'})
|
||||||
|
}
|
||||||
|
|
||||||
axios.get('/api/v1/invoicing/editor')
|
axios.get('/api/v1/invoicing/editor')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.isVatPayer = response.data.isVatPayer
|
this.isVatPayer = response.data.isVatPayer
|
||||||
|
|||||||
Reference in New Issue
Block a user