Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
445109a5
Commit
445109a5
authored
Dec 26, 2017
by
Tomáš Peterka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_accounting] Update scripts related to reports to clearly specify their arguments
parent
77df1d1d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
9 deletions
+31
-9
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.py
...s/erp5_accounting/Account_getAccountingTransactionList.py
+13
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml
.../erp5_accounting/Account_getAccountingTransactionList.xml
+1
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionList.py
...ns/erp5_accounting/Entity_getAccountingTransactionList.py
+11
-3
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionList.xml
...s/erp5_accounting/Entity_getAccountingTransactionList.xml
+1
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.py
...p5_accounting/Movement_getExplanationTitleAndAnalytics.py
+3
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.xml
...5_accounting/Movement_getExplanationTitleAndAnalytics.xml
+1
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getNodeGapId.xml
...em/portal_skins/erp5_accounting/Movement_getNodeGapId.xml
+1
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.py
View file @
445109a5
"""Returns Accounting Transactions where this account is node.
"""
kw
[
'node_uid'
]
=
context
.
getUid
()
kw
.
update
(
dict
(
# following one line is the reason for this whole script
node_uid
=
context
.
getUid
(),
selection_name
=
selection_name
,
omit_grouping_reference
=
omit_grouping_reference
,
analytic_column_list
=
analytic_column_list
,
# used to be passed through REQUEST
node_category
=
node_category
,
node_category_strict_membership
=
node_category_strict_membership
,
mirror_section_category
=
mirror_section_category
,
# from_date=from_date, # if added from_date terrible things start to happen
))
return
context
.
Node_getAccountingTransactionList
(
**
kw
)
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getAccountingTransactionList.xml
View file @
445109a5
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
<value>
<string>
node_category=None, node_category_strict_membership=None, mirror_section_category=None, omit_grouping_reference=None, selection_name=None, analytic_column_list=(),
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionList.py
View file @
445109a5
"""Returns Accounting Transactions where this entity is mirror section.
"""
kw
[
'mirror_section_uid'
]
=
context
.
getUid
()
kw
[
'node_category_strict_membership'
]
=
[
'account_type/asset/receivable'
,
'account_type/liability/payable'
]
kw
.
update
(
dict
(
# following two lines are the reason for this whole script to exist
mirror_section_uid
=
context
.
getUid
(),
node_category_strict_membership
=
[
'account_type/asset/receivable'
,
'account_type/liability/payable'
],
# omit_grouping_reference=omit_grouping_reference,
# the rest is only not to shadow which parameters are actually needed
sort_on
=
sort_on
,
selection_name
=
selection_name
,
))
return
context
.
Node_getAccountingTransactionList
(
**
kw
)
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Entity_getAccountingTransactionList.xml
View file @
445109a5
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
<value>
<string>
selection_name=\'\', sort_on=(),
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.py
View file @
445109a5
...
...
@@ -9,8 +9,10 @@ else:
title
=
explanation
.
getTitle
()
analytic_property_list
=
[
explanation
.
getReference
()]
if
analytic_column_list
is
None
:
analytic_column_list
=
request
.
get
(
'analytic_column_list'
,
())
for
property_name
,
property_title
in
request
[
'analytic_column_list'
]
:
#pylint: disable=unused-variable
for
property_name
,
property_title
in
analytic_column_list
:
#pylint: disable=unused-variable
# XXX it would be a little better to reuse editable field
if
property_name
==
'project'
:
analytic_property_list
.
append
(
brain
.
Movement_getProjectTitle
())
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getExplanationTitleAndAnalytics.xml
View file @
445109a5
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
brain, selection=None, **kwd
</string>
</value>
<value>
<string>
brain, selection=None,
analytic_column_list=(),
**kwd
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Movement_getNodeGapId.xml
View file @
445109a5
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
brain
=None
, selection=None, **kw
</string>
</value>
<value>
<string>
brain, selection=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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