1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-09 20:50:31 -05:00

Only set automatic tax to true w/ reverse charge flag if customer has billing location (#5917)

This commit is contained in:
Alex Morask 2025-06-04 13:31:17 -05:00 committed by GitHub
parent 2e14a46cee
commit 769313abbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -420,7 +420,7 @@ public class OrganizationBillingService(
var setNonUSBusinessUseToReverseCharge =
featureService.IsEnabled(FeatureFlagKeys.PM21092_SetNonUSBusinessUseToReverseCharge);
if (setNonUSBusinessUseToReverseCharge)
if (setNonUSBusinessUseToReverseCharge && customer.HasBillingLocation())
{
subscriptionCreateOptions.AutomaticTax = new SubscriptionAutomaticTaxOptions { Enabled = true };
}