setup billing profile redirect

This commit is contained in:
Peter Papp
2021-05-14 10:42:59 +02:00
parent 722eceb0c1
commit 0eee956011
@@ -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