Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
1c973c68
Commit
1c973c68
authored
Sep 04, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: source/destination have been inverted
parent
686548ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
master/bt5/slapos_subscription_request/PropertySheetTemplateItem/portal_property_sheets/SlapOSSubscriptionRequestConstraint/empty_price_constraint.xml
...SSubscriptionRequestConstraint/empty_price_constraint.xml
+1
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createOpenSaleOrder.py
...iption_request/SubscriptionRequest_createOpenSaleOrder.py
+1
-1
No files found.
master/bt5/slapos_subscription_request/PropertySheetTemplateItem/portal_property_sheets/SlapOSSubscriptionRequestConstraint/empty_price_constraint.xml
View file @
1c973c68
...
...
@@ -24,7 +24,7 @@
</item>
<item>
<key>
<string>
expression
</string>
</key>
<value>
<string>
python: context.getPrice() or (context.get
DestinationSection(\'\') in (context.getSource
Section(\'\'), \'\'))
</string>
</value>
<value>
<string>
python: context.getPrice() or (context.get
SourceSection(\'\') in (context.getDestination
Section(\'\'), \'\'))
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_createOpenSaleOrder.py
View file @
1c973c68
...
...
@@ -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
.
get
SourceSect
ionValue
()
customer_person
=
subscription_request
.
get
DestinationDecis
ionValue
()
start_date
=
getClosestDate
(
target_date
=
customer_person
.
getCreationDate
(),
precision
=
'day'
)
while
start_date
.
day
()
>=
29
:
start_date
=
addToDate
(
start_date
,
to_add
=
{
'day'
:
-
1
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment