mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Clear VAT/GST info when box is unchecked (#6338)
This commit is contained in:
@@ -125,14 +125,22 @@ export class TaxInfoComponent {
|
|||||||
getTaxInfoRequest(): TaxInfoUpdateRequest {
|
getTaxInfoRequest(): TaxInfoUpdateRequest {
|
||||||
if (this.organizationId) {
|
if (this.organizationId) {
|
||||||
const request = new OrganizationTaxInfoUpdateRequest();
|
const request = new OrganizationTaxInfoUpdateRequest();
|
||||||
|
request.country = this.taxInfo.country;
|
||||||
|
request.postalCode = this.taxInfo.postalCode;
|
||||||
|
|
||||||
|
if (this.taxInfo.includeTaxId) {
|
||||||
request.taxId = this.taxInfo.taxId;
|
request.taxId = this.taxInfo.taxId;
|
||||||
request.state = this.taxInfo.state;
|
|
||||||
request.line1 = this.taxInfo.line1;
|
request.line1 = this.taxInfo.line1;
|
||||||
request.line2 = this.taxInfo.line2;
|
request.line2 = this.taxInfo.line2;
|
||||||
request.city = this.taxInfo.city;
|
request.city = this.taxInfo.city;
|
||||||
request.state = this.taxInfo.state;
|
request.state = this.taxInfo.state;
|
||||||
request.postalCode = this.taxInfo.postalCode;
|
} else {
|
||||||
request.country = this.taxInfo.country;
|
request.taxId = null;
|
||||||
|
request.line1 = null;
|
||||||
|
request.line2 = null;
|
||||||
|
request.city = null;
|
||||||
|
request.state = null;
|
||||||
|
}
|
||||||
return request;
|
return request;
|
||||||
} else {
|
} else {
|
||||||
const request = new TaxInfoUpdateRequest();
|
const request = new TaxInfoUpdateRequest();
|
||||||
|
|||||||
Reference in New Issue
Block a user