Commit 2b7c2b9e authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Copy from Subscription the source and Source Section into the Open Order line

   As the model is use single Open Order, it isn't possible to use multiple
   organisations (one per region), so we rely on Subscription Request Information
   to describe the providers.
parent 84c0ef9f
......@@ -182,6 +182,14 @@ if (add_line_list):
# Define the start date of the period, this can variates with the time.
start_date_delta = 0
if subscription_request is not None:
# Copy from Subscription Condition the source and Source Section into the line
# RAFAEL: As the model is use single Open Order, it isn't possible to use multiple
# companies per region, so we rely on Subscription Conditions to Describe the
# providers.
edit_kw["source"] = subscription_request.getSource()
edit_kw["source_section"] = subscription_request.getSourceSection()
# Quantity is double because the first invoice has to
# charge for 2 months
edit_kw['quantity'] = subscription_request.getQuantity()
......
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