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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
9bfb98c4
Commit
9bfb98c4
authored
Jan 30, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove Resource_zStatInventory which is not used
parent
640a0a38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
198 deletions
+0
-198
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml
...teItem/portal_skins/erp5_core/Resource_zStatInventory.xml
+0
-198
No files found.
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Resource_zStatInventory.xml
deleted
100644 → 0
View file @
640a0a38
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"SQL"
module=
"Products.ZSQLMethods.SQL"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Use_Database_Methods_Permission
</string>
</key>
<value>
<list>
<string>
Member
</string>
</list>
</value>
</item>
<item>
<key>
<string>
allow_simple_one_argument_traversal
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
arguments_src
</string>
</key>
<value>
<string>
query\r\n
resource_uid:list\r\n
from_date\r\n
at_date\r\n
to_date\r\n
omit_simulation\r\n
omit_input\r\n
omit_output\r\n
simulation_state:list\r\n
section_category\r\n
selection_domain\r\n
selection_report\r\n
closed_summary\r\n
where_expression\r\n
from_table_list\r\n
selection_uids:list
</string>
</value>
</item>
<item>
<key>
<string>
cache_time_
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
class_file_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
class_name_
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
connection_hook
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Resource_zStatInventory
</string>
</value>
</item>
<item>
<key>
<string>
max_cache_
</string>
</key>
<value>
<int>
100
</int>
</value>
</item>
<item>
<key>
<string>
max_rows_
</string>
</key>
<value>
<int>
1000
</int>
</value>
</item>
<item>
<key>
<string>
src
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
SELECT\n
IFNULL(COUNT(DISTINCT stock.uid), 0) AS count,\n
IFNULL(SUM(stock.quantity), 0.00) AS quantity,\n
IFNULL(SUM(stock.total_price), 0.00) AS total_price\n
\n
FROM\n
<dtml-unless from_table_list>
\n
catalog,\n
</dtml-unless>
\n
catalog AS child,\n
stock,\n
catalog AS node\n
<dtml-if
section_category
>
\n
, catalog AS section_c\n
, catalog AS section_bc\n
, category AS section_membership\n
, catalog AS section\n
</dtml-if>
\n
<dtml-if
query
>
\n
, category\n
</dtml-if>
\n
<dtml-if
from_table_list
>
\n
<dtml-in
from_table_list
>
\n
,
<dtml-var
sequence-item
>
AS
<dtml-var
sequence-key
>
\n
</dtml-in>
\n
</dtml-if>
\n
<dtml-if
selection_domain
>
,
<dtml-var
"portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_domain)"
>
</dtml-if>
\n
<dtml-if
selection_report
>
,
<dtml-var
"portal_selections.buildSQLJoinExpressionFromDomainSelection(selection_report)"
>
</dtml-if>
\n
\n
WHERE\n
child.uid = stock.uid\n
AND catalog.uid = stock.node_uid\n
<dtml-if
where_expression
>
AND
<dtml-var
where_expression
></dtml-if>
\n
<dtml-if
resource_uid
>
\n
AND\n
(\n
<dtml-in
resource_uid
>
\n
stock.resource_uid =
<dtml-sqlvar
sequence-item
type=
"int"
>
\n
<dtml-if
sequence-end
><dtml-else>
OR
</dtml-if>
\n
</dtml-in>
\n
)\n
</dtml-if>
\n
AND node.uid = stock.node_uid\n
<dtml-if
from_date
>
\n
AND stock.date >=
<dtml-sqlvar
from_date
type=
"datetime"
>
\n
</dtml-if>
\n
<dtml-if
at_date
>
\n
AND stock.date
<
=
<dtml-sqlvar
at_date
type=
"datetime"
>
\n
</dtml-if>
\n
<dtml-if
to_date
>
\n
AND stock.date
<
<dtml-sqlvar
to_date
type=
"datetime"
>
\n
</dtml-if>
\n
<dtml-if
omit_simulation
>
\n
AND catalog.portal_type != \'Simulation Movement\'\n
</dtml-if>
\n
<dtml-if
omit_input
>
\n
AND stock.quantity
< 0
\n
AND
(stock.node_uid
<
>
stock.mirror_node_uid\n
OR stock.section_uid
<
> stock.mirror_section_uid\n
OR stock.mirror_node_uid IS NULL\n
OR stock.mirror_section_uid IS NULL\n
OR stock.payment_uid IS NOT NULL\n
)\n
</dtml-if>
\n
<dtml-if
omit_output
>
\n
AND stock.quantity > 0\n
AND (stock.node_uid
<
> stock.mirror_node_uid\n
OR stock.section_uid
<
> stock.mirror_section_uid\n
OR stock.mirror_node_uid IS NULL\n
OR stock.mirror_section_uid IS NULL\n
OR stock.payment_uid IS NOT NULL\n
)\n
</dtml-if>
\n
<dtml-if
simulation_state
>
\n
AND\n
(\n
<dtml-in
simulation_state
>
\n
stock.simulation_state =
<dtml-sqlvar
sequence-item
type=
"string"
>
\n
<dtml-if
sequence-end
><dtml-else>
OR
</dtml-if></dtml-in>
\n
)\n
</dtml-if>
\n
<dtml-if
section_category
>
\n
AND section.uid = stock.section_uid\n
AND section_c.relative_url =
<dtml-sqlvar
section_category
type=
"string"
>
\n
AND section_membership.category_uid = section_c.uid\n
AND section_membership.base_category_uid = section_bc.uid\n
AND section_membership.uid = section.uid\n
</dtml-if>
\n
<dtml-if
query
>
\n
AND category.uid = node.uid\n
AND
<dtml-var
query
>
\n
</dtml-if>
\n
\n
<dtml-if
selection_domain
>
\n
AND
<dtml-var
"portal_selections.buildSQLExpressionFromDomainSelection(selection_domain)"
>
\n
</dtml-if>
\n
<dtml-if
selection_report
>
\n
AND
<dtml-var
"portal_selections.buildSQLExpressionFromDomainSelection(selection_report)"
>
\n
</dtml-if>
\n
<dtml-if
selection_uids
>
\n
AND\n
(\n
<dtml-in
selection_uids
>
\n
node.uid =
<dtml-sqlvar
sequence-item
type=
"int"
>
\n
<dtml-if
sequence-end
><dtml-else>
OR
</dtml-if></dtml-in>
\n
)\n
</dtml-if>
\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></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