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
830aee3e
Commit
830aee3e
authored
Nov 15, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_accounting: add comment if price not found
parent
99ab8293
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
...pos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
+3
-2
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/InstanceTree_requestUpdateOpenSaleOrder.py
View file @
830aee3e
...
...
@@ -37,6 +37,7 @@ def newOpenOrder(start_date, service,
module
=
portal
.
open_sale_order_module
open_sale_order
=
module
.
newContent
(
portal_type
=
order_portal_type
,
temp_object
=
temp_order
,
specialise
=
specialise
,
effective_date
=
DateTime
(),
...
...
@@ -51,7 +52,6 @@ def newOpenOrder(start_date, service,
title
=
"%s SlapOS Subscription"
%
person
.
getTitle
(),
ledger_value
=
portal
.
portal_categories
.
ledger
.
automated
,
destination_project_value
=
instance_tree
.
getFollowUpValue
(),
activate_kw
=
activate_kw
)
resource_vcl
=
[
...
...
@@ -188,6 +188,7 @@ if instance_tree.getCausalityState() == 'diverged':
if
order_cell
.
getPrice
()
is
None
:
# No price found, do not create anything for now
# XXX add comment on Instance Tree
storeWorkflowComment
(
instance_tree
,
"No price found"
)
return
open_sale_order
,
open_order_line
,
open_order_cell
=
newOpenOrder
(
start_date
,
service
,
...
...
@@ -205,7 +206,7 @@ if instance_tree.getCausalityState() == 'diverged':
assert
open_order_line
.
getBaseContributionList
()[
1
]
==
'base_amount/invoicing/taxable'
assert
open_order_line
.
getUse
()
==
'trade/sale'
#assert open_order_line.getPrice() == 1, open_order_line.getPrice()
#
assert open_order_line.getQuantity() == 1
assert
open_order_line
.
getQuantity
()
==
1
open_sale_order
.
OpenSaleOrder_updatePeriod
()
...
...
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