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
bee17500
Commit
bee17500
authored
May 15, 2023
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: ensure the same currency is used on Order and Trade Condition
parent
b439cfb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/SaleOrder_applySaleTradeCondition.py
...ns/slapos_accounting/SaleOrder_applySaleTradeCondition.py
+3
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/SaleOrder_applySaleTradeCondition.py
View file @
bee17500
...
@@ -10,7 +10,7 @@ trade_condition_list = order.getSpecialiseValueList(
...
@@ -10,7 +10,7 @@ trade_condition_list = order.getSpecialiseValueList(
all_category_list
=
(
'source_section'
,
'source'
,
'source_project'
,
all_category_list
=
(
'source_section'
,
'source'
,
'source_project'
,
'destination_section'
,
'destination'
,
'destination_project'
,
'destination_section'
,
'destination'
,
'destination_project'
,
'currency'
)
'
price_
currency'
)
matching_category_list
=
(
'source_project'
,
'destination_project'
)
matching_category_list
=
(
'source_project'
,
'destination_project'
)
tested_base_category_list
=
[
]
tested_base_category_list
=
[
]
...
@@ -93,6 +93,8 @@ while count > 0 and len(trade_condition_list) == 0:
...
@@ -93,6 +93,8 @@ while count > 0 and len(trade_condition_list) == 0:
filter_kw
[
'destination_project__uid'
]
=
order
.
getDestinationProjectUid
()
filter_kw
[
'destination_project__uid'
]
=
order
.
getDestinationProjectUid
()
if
order
.
hasSourceProject
():
if
order
.
hasSourceProject
():
filter_kw
[
'source_project__uid'
]
=
order
.
getSourceProjectUid
()
filter_kw
[
'source_project__uid'
]
=
order
.
getSourceProjectUid
()
if
order
.
hasPriceCurrency
():
filter_kw
[
'price_currency__uid'
]
=
order
.
getPriceCurrencyUid
()
trade_condition_list
=
context
.
portal_domains
.
searchPredicateList
(
trade_condition_list
=
context
.
portal_domains
.
searchPredicateList
(
predicate_context
,
predicate_context
,
...
...
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