mirror of
https://github.com/bitwarden/server.git
synced 2025-05-01 17:52:17 -05:00
Not updating automatic tax flag correctly when removing VAT number (#5608)
(cherry picked from commit 8d4c3d83b2d6e21cf8c2c3fb4b2a26b38fbe6e82)
This commit is contained in:
parent
9a9018ed40
commit
5db89f29f2
@ -622,11 +622,8 @@ public class SubscriberService(
|
||||
await stripeAdapter.TaxIdDeleteAsync(customer.Id, taxId.Id);
|
||||
}
|
||||
|
||||
if (string.IsNullOrWhiteSpace(taxInformation.TaxId))
|
||||
if (!string.IsNullOrWhiteSpace(taxInformation.TaxId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var taxIdType = taxInformation.TaxIdType;
|
||||
if (string.IsNullOrWhiteSpace(taxIdType))
|
||||
{
|
||||
@ -665,6 +662,7 @@ public class SubscriberService(
|
||||
throw new Exceptions.BadRequestException("billingTaxIdCreationError");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (featureService.IsEnabled(FeatureFlagKeys.PM19147_AutomaticTaxImprovements))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user