Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
810a7d48
Commit
810a7d48
authored
Sep 10, 2013
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Validate projects on test because draft projects are not considered
parent
f7dee0d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
product/ERP5/tests/testAccountingReports.py
product/ERP5/tests/testAccountingReports.py
+12
-0
No files found.
product/ERP5/tests/testAccountingReports.py
View file @
810a7d48
...
...
@@ -4013,9 +4013,15 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
preference
.
_edit
(
preferred_accounting_transaction_line_function_base_category
=
None
,
preferred_accounting_transaction_line_analytic_base_category_list
=
())
for
module_id
in
(
'project_module'
,):
module
=
self
.
portal
[
module_id
]
module
.
manage_delObjects
([
x
for
x
in
module
.
objectIds
()])
self
.
commit
()
def
testJournalAnalyticsShown
(
self
):
self
.
project_1
.
validate
()
self
.
project_2
.
validate
()
self
.
tic
()
request_form
=
self
.
portal
.
REQUEST
.
form
request_form
[
'at_date'
]
=
DateTime
(
2006
,
2
,
2
)
request_form
[
'section_category'
]
=
'group/demo_group'
...
...
@@ -4113,6 +4119,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
self
.
checkLineProperties
(
line_list
[
-
1
],
debit
=
1500
,
credit
=
1500
)
def
testAccountStatementAnalyticsShown
(
self
):
self
.
project_1
.
validate
()
self
.
project_2
.
validate
()
self
.
tic
()
request_form
=
self
.
portal
.
REQUEST
.
form
request_form
[
'node'
]
=
\
self
.
portal
.
account_module
.
goods_sales
.
getRelativeUrl
()
...
...
@@ -4203,6 +4212,9 @@ class TestAccountingReportsWithAnalytic(AccountingTestCase, ERP5ReportTestCase):
self
.
checkLineProperties
(
line_list
[
-
1
],
debit_price
=
0
,
credit_price
=
1500
)
def
testGeneralLedgerAnalyticsShown
(
self
):
self
.
project_1
.
validate
()
self
.
project_2
.
validate
()
self
.
tic
()
request_form
=
self
.
portal
.
REQUEST
.
form
request_form
[
'from_date'
]
=
DateTime
(
2006
,
1
,
1
)
request_form
[
'at_date'
]
=
DateTime
(
2006
,
12
,
31
)
...
...
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