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
Ivan Tyagov
slapos.core
Commits
0067e4bb
Commit
0067e4bb
authored
Nov 20, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass date during invoice creation (needed for post-confirm transition).
parent
8b133845
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
...stTemplateItem/testSlapOSAccountingInteractionWorkflow.py
+14
-13
master/bt5/slapos_accounting/bt/revision
master/bt5/slapos_accounting/bt/revision
+1
-1
No files found.
master/bt5/slapos_accounting/TestTemplateItem/testSlapOSAccountingInteractionWorkflow.py
View file @
0067e4bb
...
...
@@ -212,22 +212,22 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
self
.
portal
.
portal_skins
.
custom
.
manage_delObjects
(
script_name
)
transaction
.
commit
()
def
_test_calculate
(
self
,
new_id
,
newContent
,
portal_type
):
cancel_spl
=
newContent
(
portal_type
=
portal_type
)
close_spl
=
newContent
(
portal_type
=
portal_type
)
confirm_spl
=
newContent
(
portal_type
=
portal_type
)
deliver_spl
=
newContent
(
portal_type
=
portal_type
)
def
_test_calculate
(
self
,
new_id
,
newContent
,
**
new_kw
):
cancel_spl
=
newContent
(
**
new_kw
)
close_spl
=
newContent
(
**
new_kw
)
confirm_spl
=
newContent
(
**
new_kw
)
deliver_spl
=
newContent
(
**
new_kw
)
deliver_spl
.
confirm
()
deliver_spl
.
stop
()
order_spl
=
newContent
(
portal_type
=
portal_type
)
plan_spl
=
newContent
(
portal_type
=
portal_type
)
setReady_spl
=
newContent
(
portal_type
=
portal_type
)
order_spl
=
newContent
(
**
new_kw
)
plan_spl
=
newContent
(
**
new_kw
)
setReady_spl
=
newContent
(
**
new_kw
)
setReady_spl
.
confirm
()
start_spl
=
newContent
(
portal_type
=
portal_type
)
start_spl
=
newContent
(
**
new_kw
)
start_spl
.
confirm
()
stop_spl
=
newContent
(
portal_type
=
portal_type
)
stop_spl
=
newContent
(
**
new_kw
)
stop_spl
.
confirm
()
submit_spl
=
newContent
(
portal_type
=
portal_type
)
submit_spl
=
newContent
(
**
new_kw
)
self
.
_simulateDelivery_calculate
()
try
:
...
...
@@ -278,13 +278,14 @@ portal_workflow.doActionFor(context, action='edit_action', comment='Visited by D
new_id
=
self
.
generateNewId
()
newContent
=
self
.
portal
.
sale_packing_list_module
.
newContent
portal_type
=
"Sale Packing List"
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
)
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
=
portal_type
)
def
test_SaleInvoiceTransaction_calculate
(
self
):
new_id
=
self
.
generateNewId
()
newContent
=
self
.
portal
.
accounting_module
.
newContent
portal_type
=
"Sale Invoice Transaction"
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
)
self
.
_test_calculate
(
new_id
,
newContent
,
portal_type
=
portal_type
,
start_date
=
'2011/01/01'
)
def
test_HostingSubscription_changePromise
(
self
):
new_id
=
self
.
generateNewId
()
...
...
master/bt5/slapos_accounting/bt/revision
View file @
0067e4bb
86
\ No newline at end of file
87
\ No newline at end of file
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