Commit 88889b8a authored by Jean-Paul Smets's avatar Jean-Paul Smets

initial checkin


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1198 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49ae9594
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:10
class_name:
class_file:
</dtml-comment>
<params>uid</params>
SELECT DISTINCT
catalog.relative_url AS destination,
catalog.uid AS destination_uid
FROM
category, movement, catalog
WHERE
category.category_uid = <dtml-sqlvar uid type="int">
AND
category.uid = movement.uid
AND
category.base_category_uid = <dtml-sqlvar expr="portal_categories.delivery.getUid()" type="int">
AND
catalog.uid = movement.destination_uid
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:10
class_name:
class_file:
</dtml-comment>
<params>uid</params>
SELECT
SUM(movement.quantity) AS quantity,
SUM(movement.target_quantity) AS target_quantity
FROM
category, movement
WHERE
category.category_uid = <dtml-sqlvar uid type="int">
AND
category.uid = movement.uid
AND
category.base_category_uid = <dtml-sqlvar expr="portal_categories.delivery.getUid()" type="int">
\ No newline at end of file
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:10
class_name:
class_file:
</dtml-comment>
<params>uid</params>
SELECT DISTINCT
catalog.relative_url AS source,
catalog.uid AS source_uid
FROM
category, movement, catalog
WHERE
category.category_uid = <dtml-sqlvar uid type="int">
AND
category.uid = movement.uid
AND
category.base_category_uid = <dtml-sqlvar expr="portal_categories.delivery.getUid()" type="int">
AND
catalog.uid = movement.source_uid
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment