mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-13 16:55:01 +00:00
setup billing profile redirect
This commit is contained in:
@@ -367,6 +367,7 @@
|
||||
...mapGetters([
|
||||
'countries',
|
||||
'config',
|
||||
'user',
|
||||
]),
|
||||
pageTitle() {
|
||||
return {
|
||||
@@ -690,6 +691,10 @@
|
||||
mounted() {
|
||||
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')
|
||||
.then(response => {
|
||||
this.isVatPayer = response.data.isVatPayer
|
||||
|
||||
Reference in New Issue
Block a user