Commit 1c973c68 authored by Romain Courteaud's avatar Romain Courteaud

slapos_subscription_request: source/destination have been inverted

parent 686548ee
......@@ -24,7 +24,7 @@
</item>
<item>
<key> <string>expression</string> </key>
<value> <string>python: context.getPrice() or (context.getDestinationSection(\'\') in (context.getSourceSection(\'\'), \'\'))</string> </value>
<value> <string>python: context.getPrice() or (context.getSourceSection(\'\') in (context.getDestinationSection(\'\'), \'\'))</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -26,7 +26,7 @@ if hosting_subscription.getPeriodicityMonthDay() is None:
# to prevent overload of the server at this date
# Use the person creation date for now, as this document is always accessible
# without relying on portal_catalog / serialize
customer_person = subscription_request.getSourceSectionValue()
customer_person = subscription_request.getDestinationDecisionValue()
start_date = getClosestDate(target_date=customer_person.getCreationDate(), precision='day')
while start_date.day() >= 29:
start_date = addToDate(start_date, to_add={'day': -1})
......
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