Skip to content

Commit 85cbb31

Browse files
kushthedudeabhinavk96
authored andcommitted
feat: Improving Tax Modal and Including company in Cards (#2930)
* Improving Tax Modal and Including company in Cards * Extra symbols removal
1 parent dfdf68e commit 85cbb31

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

app/components/modals/tax-info-modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default ModalBase.extend(FormMixin, {
1010
closable: false
1111
},
1212

13-
autoScrollToErrors : false,
13+
autoScrollToErrors : true,
1414
isTaxIncludedInPrice : 'include',
1515

1616
getValidationRules() {

app/templates/components/forms/wizard/basic-details-step.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@
421421
</div>
422422
<div class="content">
423423
<div class="header">{{data.event.tax.name}}</div>
424+
{{#if data.event.tax.shouldSendInvoice}}
425+
<div class="description">
426+
{{t 'Company Name '}}{{data.event.tax.registeredCompany}}
427+
</div>
428+
{{/if}}
424429
<div class="description">
425430
{{data.event.tax.taxId}}<br>
426431
{{data.event.tax.rate}}% - {{if data.event.tax.isTaxIncludedInPrice 'Included in ticket price'

app/templates/components/modals/tax-info-modal.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="header">
22
{{t 'Add tax information'}}
33
</div>
4-
<div class="y-scrollable scrollable-modal content">
4+
<div class="{{if tax.shouldSendInvoice "y-scrollable scrollable-"}}modal content">
55
<form class="ui form" autocomplete="off" {{action 'updateTaxInfo' on='submit' preventDefault=true}}>
66
<div class="field">
77
<label class="required">{{t 'Choose country'}}</label>
@@ -95,4 +95,4 @@
9595
{{t 'Update tax information'}}
9696
<i class="checkmark icon"></i>
9797
</button>
98-
</div>
98+
</div>

0 commit comments

Comments
 (0)