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
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
preetwinder
erp5
Commits
309579c4
Commit
309579c4
authored
Jul 05, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: remove unused AccountingTransactionModule_statSource{Debit,Credit}
parent
8e461687
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
163 deletions
+0
-163
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.py
...ccounting/AccountingTransactionModule_statSourceCredit.py
+0
-20
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml
...counting/AccountingTransactionModule_statSourceCredit.xml
+0
-62
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.py
...accounting/AccountingTransactionModule_statSourceDebit.py
+0
-19
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml
...ccounting/AccountingTransactionModule_statSourceDebit.xml
+0
-62
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.py
deleted
100644 → 0
View file @
8e461687
params
=
context
.
portal_selections
.
getSelectionParamsFor
(
selection_name
)
params
[
'stat'
]
=
1
params
[
'omit_input'
]
=
1
params
[
'omit_output'
]
=
0
if
(
params
.
get
(
'operation_date'
)
or
{}).
get
(
'query'
):
buildSQLQuery
=
context
.
portal_catalog
.
buildSQLQuery
params
[
'source_section_where_expression'
]
=
buildSQLQuery
(
**
{
'delivery.start_date'
:
params
[
'operation_date'
]})[
'where_expression'
]
params
[
'destination_section_where_expression'
]
=
buildSQLQuery
(
**
{
'delivery.stop_date'
:
params
[
'operation_date'
]})[
'where_expression'
]
del
params
[
'operation_date'
]
result
=
context
.
AccountingTransactionModule_zGetAccountingTransactionList
(
selection
=
selection
,
selection_params
=
params
,
**
params
)
row
=
result
[
0
]
return
float
(
'%.02f'
%
(
row
.
total_price
and
-
row
.
total_price
or
0.0
))
# vim: syntax=python
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceCredit.xml
deleted
100644 → 0
View file @
8e461687
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
AccountingTransactionModule_statSourceCredit
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.py
deleted
100644 → 0
View file @
8e461687
params
=
context
.
portal_selections
.
getSelectionParamsFor
(
selection_name
)
params
[
'stat'
]
=
1
params
[
'omit_output'
]
=
1
params
[
'omit_input'
]
=
0
if
(
params
.
get
(
'operation_date'
)
or
{}).
get
(
'query'
):
buildSQLQuery
=
context
.
portal_catalog
.
buildSQLQuery
params
[
'source_section_where_expression'
]
=
buildSQLQuery
(
**
{
'delivery.start_date'
:
params
[
'operation_date'
]})[
'where_expression'
]
params
[
'destination_section_where_expression'
]
=
buildSQLQuery
(
**
{
'delivery.stop_date'
:
params
[
'operation_date'
]})[
'where_expression'
]
del
params
[
'operation_date'
]
result
=
context
.
AccountingTransactionModule_zGetAccountingTransactionList
(
selection
=
selection
,
selection_params
=
params
,
**
params
)
row
=
result
[
0
]
return
float
(
'%.02f'
%
(
row
.
total_price
or
0.0
))
# vim: syntax=python
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_statSourceDebit.xml
deleted
100644 → 0
View file @
8e461687
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
selection=None, selection_name=None, **kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
AccountingTransactionModule_statSourceDebit
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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