diff --git a/app/components/modals/tax-info-modal.js b/app/components/modals/tax-info-modal.js index 6352a7909b9..143f014c17d 100644 --- a/app/components/modals/tax-info-modal.js +++ b/app/components/modals/tax-info-modal.js @@ -52,6 +52,7 @@ export default ModalBase.extend(FormMixin, { }, taxInvoiceCompany: { identifier : 'tax_invoice_company', + optional : true, depends : 'send_tax_invoices', rules : [ { @@ -62,6 +63,7 @@ export default ModalBase.extend(FormMixin, { }, taxInvoiceAddress: { identifier : 'tax_invoice_address', + optional : true, depends : 'send_tax_invoices', rules : [ { @@ -73,6 +75,7 @@ export default ModalBase.extend(FormMixin, { taxInvoiceCity: { identifier : 'tax_invoice_city', + optional : true, rules : [ { type : 'empty', @@ -83,6 +86,7 @@ export default ModalBase.extend(FormMixin, { taxInvoiceState: { identifier : 'tax_invoice_state', + optional : true, rules : [ { type : 'empty', @@ -93,6 +97,7 @@ export default ModalBase.extend(FormMixin, { taxInvoiceZipCode: { identifier : 'tax_invoice_zipcode', + optional : true, rules : [ { type : 'empty', diff --git a/app/templates/components/modals/tax-info-modal.hbs b/app/templates/components/modals/tax-info-modal.hbs index 3c8ac219541..5ab7aa98abd 100644 --- a/app/templates/components/modals/tax-info-modal.hbs +++ b/app/templates/components/modals/tax-info-modal.hbs @@ -45,23 +45,23 @@