[AC-1599] Fix Secrets Manager cost subtotal when creating an organization (#6044)
* Fix service account cost not included in SM subtotal * Simplify logic
This commit is contained in:
parent
1b32cddbad
commit
e916cec6b5
|
@ -314,16 +314,11 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
let subTotal = plan.basePrice;
|
return (
|
||||||
if (plan.hasAdditionalSeatsOption && formValues.userSeats) {
|
plan.basePrice +
|
||||||
subTotal += this.seatTotal(plan, formValues.userSeats);
|
this.seatTotal(plan, formValues.userSeats) +
|
||||||
}
|
this.additionalServiceAccountTotal(plan)
|
||||||
|
);
|
||||||
if (plan.hasAdditionalStorageOption && formValues.additionalServiceAccounts) {
|
|
||||||
subTotal += this.additionalServiceAccountTotal(this.selectedPlan);
|
|
||||||
}
|
|
||||||
|
|
||||||
return subTotal;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get freeTrial() {
|
get freeTrial() {
|
||||||
|
|
Loading…
Reference in New Issue