Commit b7ceaeef authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: Subscription Request categories were inverted

parent 1b199e1b
......@@ -53,7 +53,7 @@ customer.newContent(
# Compute Node trade condition
if is_compute_node_payable:
source_section_value = subscription_request.getDestinationSectionValue(None)
source_section_value = subscription_request.getSourceSectionValue(None)
if source_section_value is None:
raise AssertionError('No source section found to generate the invoices')
title = 'Payable Compute Node for: %s' % project.getTitle()
......@@ -66,7 +66,7 @@ sale_trade_condition = portal.sale_trade_condition_module.newContent(
trade_condition_type="compute_node",
specialise_value=specialise_value,
destination_project_value=project,
source_value=subscription_request.getDestinationValue(),
source_value=subscription_request.getSourceValue(),
source_section_value=source_section_value,
#source_payment_value=seller_bank_account,
price_currency_value=currency_value
......@@ -75,7 +75,7 @@ sale_trade_condition.validate()
# Instance Tree trade condition
if is_instance_tree_payable:
source_section_value = subscription_request.getDestinationSectionValue(None)
source_section_value = subscription_request.getSourceSectionValue(None)
if source_section_value is None:
raise AssertionError('No source section found to generate the invoices')
title = 'Payable Instance Tree for: %s' % project.getTitle()
......@@ -88,7 +88,7 @@ sale_trade_condition = portal.sale_trade_condition_module.newContent(
trade_condition_type="instance_tree",
specialise_value=specialise_value,
source_project_value=project,
source_value=subscription_request.getDestinationValue(),
source_value=subscription_request.getSourceValue(),
source_section_value=source_section_value,
#source_payment_value=seller_bank_account,
price_currency_value=currency_value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment