Commit f3e40ba7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request: Set proper dates in order to select the proper Trade Condition

parent 73f0ba56
...@@ -28,6 +28,9 @@ if current_invoice is None: ...@@ -28,6 +28,9 @@ if current_invoice is None:
stop_date=payment_transaction.getStopDate(), stop_date=payment_transaction.getStopDate(),
) )
current_invoice["1"].edit(
start_date=payment_transaction.getStartDate(),
stop_date=payment_transaction.getStopDate())
if service_variation is not None: if service_variation is not None:
current_invoice["1"].setVariation(service_variation) current_invoice["1"].setVariation(service_variation)
......
...@@ -33,7 +33,9 @@ if current_invoice is None: ...@@ -33,7 +33,9 @@ if current_invoice is None:
tax = 0 tax = 0
else: else:
invoice_line = invoice_template["1"].asContext( invoice_line = invoice_template["1"].asContext(
destination_section=context.getDestinationSection() destination_section=context.getDestinationSection(),
start_date=DateTime(),
stop_date=DateTime()
) )
subscription_trade_condition = portal.portal_preferences.getPreferredAggregatedSubscriptionSaleTradeCondition() subscription_trade_condition = portal.portal_preferences.getPreferredAggregatedSubscriptionSaleTradeCondition()
......
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