Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
edac6d0c
Commit
edac6d0c
authored
Nov 10, 2011
by
Tatuya Kamada
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure a dedicated business link to build accounting transaction lines.
parent
3aff002c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5/tests/testPayroll.py
product/ERP5/tests/testPayroll.py
+13
-0
No files found.
product/ERP5/tests/testPayroll.py
View file @
edac6d0c
...
@@ -3018,9 +3018,22 @@ class TestPayroll(TestPayrollMixin):
...
@@ -3018,9 +3018,22 @@ class TestPayroll(TestPayrollMixin):
'product_line/payroll_tax_1'
],
'product_line/payroll_tax_1'
],
**
kw
)
**
kw
)
def
createPayrollAccountingBusinessLink
(
self
):
invoiced
=
self
.
portal
.
portal_categories
.
trade_state
.
invoiced
completed_state_list
=
[
'delivered'
]
frozen_state_list
=
[
'delivered'
,
'confirmed'
]
self
.
createBusinessLink
(
self
.
business_process
,
successor_value
=
invoiced
,
trade_phase
=
'default/accounting'
,
completed_state_list
=
completed_state_list
,
frozen_state_list
=
frozen_state_list
,
delivery_builder_list
=
(
'portal_deliveries/pay_sheet_transaction_builder'
,))
def
test_AccountingLineGeneration
(
self
):
def
test_AccountingLineGeneration
(
self
):
# create a pay sheet
# create a pay sheet
self
.
createPayrollBusinesProcess
()
self
.
createPayrollBusinesProcess
()
self
.
createPayrollAccountingBusinessLink
()
eur
=
self
.
portal
.
currency_module
.
EUR
eur
=
self
.
portal
.
currency_module
.
EUR
employer
=
self
.
portal
.
organisation_module
.
newContent
(
employer
=
self
.
portal
.
organisation_module
.
newContent
(
portal_type
=
'Organisation'
,
portal_type
=
'Organisation'
,
...
...
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