Skip to content

Commit aa2986c

Browse files
committed
...
1 parent 2047f79 commit aa2986c

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,11 +1733,13 @@ export class Message {
17331733

17341734
if ((billing.tax != 1 || billing.taxrate != "") && customer.tax_ids.total_count > 0) {
17351735
if (customer.tax_ids.data[0].verification.status == 'verified' || customer.tax_ids.data[0].verification.status == 'unavailable') {
1736-
if (billing.name != customer.tax_ids.data[0].verification.verified_name ||
1737-
billing.address != customer.tax_ids.data[0].verification.verified_address) {
1738-
billing.name = customer.tax_ids.data[0].verification.verified_name;
1739-
billing.address = customer.tax_ids.data[0].verification.verified_address;
1740-
dirty = true;
1736+
if (customer.tax_ids.data[0].verification.status == 'verified') {
1737+
if (billing.name != customer.tax_ids.data[0].verification.verified_name ||
1738+
billing.address != customer.tax_ids.data[0].verification.verified_address) {
1739+
billing.name = customer.tax_ids.data[0].verification.verified_name;
1740+
billing.address = customer.tax_ids.data[0].verification.verified_address;
1741+
dirty = true;
1742+
}
17411743
}
17421744
if ((billing.tax != 1 || billing.taxrate != "") && customer.tax_ids.data[0].country != "DK") {
17431745
billing.tax = 1;

OpenFlow/src/public/Controllers.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3206,8 +3206,10 @@ module openflow {
32063206
this.taxstatus = this.stripe_customer.tax_ids.data[0].verification.status;
32073207
this.taxaddress = this.stripe_customer.tax_ids.data[0].verification.verified_address;
32083208
if (this.stripe_customer.tax_ids.data[0].verification.status == 'verified' || this.stripe_customer.tax_ids.data[0].verification.status == 'unavailable') {
3209-
this.model.name = this.stripe_customer.tax_ids.data[0].verification.verified_name;
3210-
this.model.address = this.stripe_customer.tax_ids.data[0].verification.verified_address;
3209+
if (this.stripe_customer.tax_ids.data[0].verification.status == 'verified') {
3210+
this.model.name = this.stripe_customer.tax_ids.data[0].verification.verified_name;
3211+
this.model.address = this.stripe_customer.tax_ids.data[0].verification.verified_address;
3212+
}
32113213
this.allowopenflowsignup = true;
32123214
this.allowsupportsignup = true;
32133215
}

0 commit comments

Comments
 (0)