service level specific base fees
This commit is contained in:
parent
150250bfb1
commit
033eea92cd
9 changed files with 716 additions and 58 deletions
|
@ -340,7 +340,7 @@ def generate_pricing_data(offering):
|
|||
|
||||
# Get pricing components
|
||||
compute_plan_price = plan.get_price(currency)
|
||||
base_fee = appcat_price.get_base_fee(currency)
|
||||
base_fee = appcat_price.get_base_fee(currency, service_level)
|
||||
unit_rate = appcat_price.get_unit_rate(currency, service_level)
|
||||
|
||||
# Skip if any pricing component is missing
|
||||
|
@ -380,7 +380,7 @@ def generate_pricing_data(offering):
|
|||
addon_price_per_unit = None
|
||||
|
||||
if addon.addon_type == "BF": # Base Fee
|
||||
addon_price = addon.get_price(currency)
|
||||
addon_price = addon.get_price(currency, service_level)
|
||||
elif addon.addon_type == "UR": # Unit Rate
|
||||
addon_price_per_unit = addon.get_price(currency, service_level)
|
||||
if addon_price_per_unit:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue