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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
b7ceaeef
Commit
b7ceaeef
authored
Sep 01, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: Subscription Request categories were inverted
parent
1b199e1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Person_addVirtualMaster.py
...Item/portal_skins/slapos_panel/Person_addVirtualMaster.py
+4
-4
No files found.
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/Person_addVirtualMaster.py
View file @
b7ceaeef
...
...
@@ -53,7 +53,7 @@ customer.newContent(
# Compute Node trade condition
if
is_compute_node_payable
:
source_section_value
=
subscription_request
.
get
Destination
SectionValue
(
None
)
source_section_value
=
subscription_request
.
get
Source
SectionValue
(
None
)
if
source_section_value
is
None
:
raise
AssertionError
(
'No source section found to generate the invoices'
)
title
=
'Payable Compute Node for: %s'
%
project
.
getTitle
()
...
...
@@ -66,7 +66,7 @@ sale_trade_condition = portal.sale_trade_condition_module.newContent(
trade_condition_type
=
"compute_node"
,
specialise_value
=
specialise_value
,
destination_project_value
=
project
,
source_value
=
subscription_request
.
get
Destination
Value
(),
source_value
=
subscription_request
.
get
Source
Value
(),
source_section_value
=
source_section_value
,
#source_payment_value=seller_bank_account,
price_currency_value
=
currency_value
...
...
@@ -75,7 +75,7 @@ sale_trade_condition.validate()
# Instance Tree trade condition
if
is_instance_tree_payable
:
source_section_value
=
subscription_request
.
get
Destination
SectionValue
(
None
)
source_section_value
=
subscription_request
.
get
Source
SectionValue
(
None
)
if
source_section_value
is
None
:
raise
AssertionError
(
'No source section found to generate the invoices'
)
title
=
'Payable Instance Tree for: %s'
%
project
.
getTitle
()
...
...
@@ -88,7 +88,7 @@ sale_trade_condition = portal.sale_trade_condition_module.newContent(
trade_condition_type
=
"instance_tree"
,
specialise_value
=
specialise_value
,
source_project_value
=
project
,
source_value
=
subscription_request
.
get
Destination
Value
(),
source_value
=
subscription_request
.
get
Source
Value
(),
source_section_value
=
source_section_value
,
#source_payment_value=seller_bank_account,
price_currency_value
=
currency_value
...
...
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