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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
6789bf51
Commit
6789bf51
authored
Aug 26, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: if the payment is done by an organisation, skip the user payment process
parent
d82bf16b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_selectRequestInstanceTree.py
...l_skins/slapos_panel/Project_selectRequestInstanceTree.py
+2
-1
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_selectRequestSoftwareRelease.py
...kins/slapos_panel/Project_selectRequestSoftwareRelease.py
+2
-1
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_selectRequestInstanceTree.py
View file @
6789bf51
...
...
@@ -75,7 +75,8 @@ subscription_request = request_instance_tree.Item_createSubscriptionRequest(temp
# Check if we could create the Subscription Request
if
subscription_request
is
not
None
:
price
=
subscription_request
.
getPrice
(
None
)
if
price
is
not
None
and
price
!=
0
:
# If the payment is done by an Organisation, skip user payment process
if
(
price
is
not
None
)
and
(
price
!=
0
)
and
(
subscription_request
.
getDestinationSection
()
==
person
.
getRelativeUrl
()):
balance
=
person
.
Entity_getDepositBalanceAmount
([
subscription_request
])
if
balance
<
price
:
instance
=
web_site
.
restrictedTraverse
(
request_instance_tree
.
getRelativeUrl
())
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Project_selectRequestSoftwareRelease.py
View file @
6789bf51
...
...
@@ -38,7 +38,8 @@ if aggregate_uid is None:
is_future_balance_negative
=
0
price_information
=
None
if
price
is
not
None
and
price
!=
0
:
# If the payment is done by an Organisation, skip user payment process
if
(
price
is
not
None
)
and
(
price
!=
0
)
and
(
subscription_request
.
getDestinationSection
()
==
destination_value
.
getRelativeUrl
()):
price_information
=
'%s %s/%s'
%
(
price
,
subscription_request
.
getPriceCurrencyTitle
(),
subscription_request
.
getQuantityUnitTitle
())
...
...
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