Skip to content

Commit 34bc191

Browse files
authored
Make Tax and Business ID optional (#8561)
* fix: make tax business info optional * pending changes
1 parent 8980eea commit 34bc191

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

app/components/forms/orders/order-form.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,7 @@ export default Component.extend(FormMixin, {
493493
},
494494
taxBusinessInfo: {
495495
identifier : 'taxBusinessInfo',
496-
rules : [
497-
{
498-
type : 'empty',
499-
prompt : this.l10n.t('Please enter your Tax ID or Business ID.')
500-
}
501-
]
496+
optional: true
502497
},
503498
address: {
504499
identifier : 'address',

app/templates/components/forms/orders/attendee-list.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@
9696
{{t 'Organisation'}}
9797
</h4>
9898
<p>{{this.data.company}}</p>
99-
<h4 class="weight-300">
100-
{{t 'Tax ID or Business ID'}}
101-
</h4>
102-
<p> {{this.data.taxBusinessInfo}}</p>
99+
{{#if this.data.taxBusinessInfo}}
100+
<h4 class="weight-300">
101+
{{t 'Tax ID or Business ID'}}
102+
</h4>
103+
<p> {{this.data.taxBusinessInfo}}</p>
104+
{{/if}}
103105
</div>
104106

105107
<div class="column">

app/templates/components/widgets/forms/billing-info.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@value={{this.data.company}} />
77
</div>
88
<div class="field">
9-
<label class="required" for="taxBusinessInfo">{{t 'Tax ID or Business ID'}}</label>
9+
<label for="taxBusinessInfo">{{t 'Tax ID or Business ID'}}</label>
1010
<Input
1111
@type="text"
1212
@id="taxBusinessInfo"

0 commit comments

Comments
 (0)