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
19
Merge Requests
19
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
491863f4
Commit
491863f4
authored
Feb 02, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define fully Payment Transaction.
parent
a484e7f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
master/product/Vifib/tests/testVifibSlapComputerPartitionLock.py
...product/Vifib/tests/testVifibSlapComputerPartitionLock.py
+10
-2
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionLock.py
View file @
491863f4
...
@@ -314,14 +314,22 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
...
@@ -314,14 +314,22 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
person
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
(
sequence
[
person
=
self
.
portal
.
ERP5Site_getAuthenticatedMemberPersonValue
(
sequence
[
'web_user'
])
'web_user'
])
payment_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
payment_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
source_section
=
'organisation_module/vifib_internet'
,
destination_section
=
person
.
getRelativeUrl
(),
currency_module
=
'currency_module/EUR'
,
portal_type
=
"Payment Transaction"
,
portal_type
=
"Payment Transaction"
,
start_date
=
DateTime
(),
start_date
=
DateTime
(),
# XXX More info needed
# XXX More info needed
)
)
payment_transaction
_line
=
payment_transaction
.
newContent
(
payment_transaction
.
newContent
(
portal_type
=
"Accounting Transaction Line"
,
portal_type
=
"Accounting Transaction Line"
,
quantity
=
10000
,
quantity
=
10000
,
# XXX More info needed
source
=
'account_module/receivable'
,
)
payment_transaction
.
newContent
(
portal_type
=
"Accounting Transaction Line"
,
quantity
=-
10000
,
source
=
'account_module/sales'
,
)
)
payment_transaction
.
confirm
()
payment_transaction
.
confirm
()
# XXX More info needed
# XXX More info needed
...
...
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