File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
bitwarden_license/src/Commercial.Core/AdminConsole/Providers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,14 @@ private async Task ResetOrganizationBillingAsync(
110
110
IEnumerable < string > organizationOwnerEmails )
111
111
{
112
112
if ( provider . IsBillable ( ) &&
113
- organization . IsValidClient ( ) &&
114
- ! string . IsNullOrEmpty ( organization . GatewayCustomerId ) )
113
+ organization . IsValidClient ( ) )
115
114
{
115
+ // An organization converted to a business unit will not have a Customer since it was given to the business unit.
116
+ if ( string . IsNullOrEmpty ( organization . GatewayCustomerId ) )
117
+ {
118
+ await _providerBillingService . CreateCustomerForClientOrganization ( provider , organization ) ;
119
+ }
120
+
116
121
var customer = await _stripeAdapter . CustomerUpdateAsync ( organization . GatewayCustomerId , new CustomerUpdateOptions
117
122
{
118
123
Description = string . Empty ,
You can’t perform that action at this time.
0 commit comments