Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
ec3552c6
Commit
ec3552c6
authored
Feb 02, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix currency definition on payment
parent
40702d32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
master/product/Vifib/tests/testVifibSlapComputerPartitionLock.py
...product/Vifib/tests/testVifibSlapComputerPartitionLock.py
+25
-7
No files found.
master/product/Vifib/tests/testVifibSlapComputerPartitionLock.py
View file @
ec3552c6
...
@@ -208,13 +208,22 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
...
@@ -208,13 +208,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
(),
resource
=
'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"
,
# XXX More info needed
quantity
=
1
,
source
=
'account_module/receivable'
,
)
payment_transaction
.
newContent
(
portal_type
=
"Accounting Transaction Line"
,
quantity
=-
1
,
source
=
'account_module/sales'
,
)
)
payment_transaction
.
confirm
()
payment_transaction
.
confirm
()
# XXX More info needed
# XXX More info needed
...
@@ -257,17 +266,26 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
...
@@ -257,17 +266,26 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
addSequenceString
(
sequence_string
)
sequence_list
.
play
(
self
)
sequence_list
.
play
(
self
)
def
stepCreatePast
NotPaid
Payment
(
self
,
sequence
,
**
kw
):
def
stepCreatePast
Small
Payment
(
self
,
sequence
,
**
kw
):
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
(),
resource
=
'currency_module/EUR'
,
portal_type
=
"Payment Transaction"
,
portal_type
=
"Payment Transaction"
,
start_date
=
DateTime
()
-
15
,
start_date
=
DateTime
()
-
90
,
# 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"
,
# XXX More info needed
quantity
=
1
,
source
=
'account_module/receivable'
,
)
payment_transaction
.
newContent
(
portal_type
=
"Accounting Transaction Line"
,
quantity
=-
1
,
source
=
'account_module/sales'
,
)
)
payment_transaction
.
confirm
()
payment_transaction
.
confirm
()
# XXX More info needed
# XXX More info needed
...
@@ -316,7 +334,7 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
...
@@ -316,7 +334,7 @@ class TestVifibSlapComputerPartitionLock(TestVifibSlapWebServiceMixin):
payment_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
payment_transaction
=
self
.
portal
.
accounting_module
.
newContent
(
source_section
=
'organisation_module/vifib_internet'
,
source_section
=
'organisation_module/vifib_internet'
,
destination_section
=
person
.
getRelativeUrl
(),
destination_section
=
person
.
getRelativeUrl
(),
currency_modul
e
=
'currency_module/EUR'
,
resourc
e
=
'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
...
...
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