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([
'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