Commit 76144f20 authored by Alexandre Boeglin's avatar Alexandre Boeglin

added deliveryLineType related property.

added ZSQL method z_related_uid_or_parent_uid used by deliveryLineType
  (but, is movement.is_accountable test useful in this case ?)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3026 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61a1d299
......@@ -133,6 +133,7 @@
<property id="sql_catalog_related_keys" type="tuple">
<item type="str">allowedRolesAndUsers | roles_and_users/allowedRolesAndUsers/z_related_security</item>
<item type="str">resourceType | movement,catalog/portal_type/z_related_resource</item>
<item type="str">deliveryLineType | movement,catalog/portal_type/z_related_uid_or_parent_uid</item>
<item type="str">stock_resourceCategory | category/category_uid/z_related_resource_uid_from_stock</item>
<item type="str">stock_nodeCategory | category/category_uid/z_related_node_uid_from_stock</item>
<item type="str">stock_paymentCategory | category/category_uid/z_related_payment_uid_from_stock</item>
......
<dtml-comment>
title:
connection_id:cmf_activity_sql_connection
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
......@@ -10,4 +10,4 @@ class_file:
<params>table_0
table_1</params>
<dtml-var table_0>.uid = catalog.uid
AND <dtml-var table_1>.uid = <dtml-var table_0>.resource_uid
\ No newline at end of file
AND <dtml-var table_1>.uid = <dtml-var table_0>.resource_uid
<dtml-comment>
title:
connection_id:erp5_sql_connection
max_rows:1000
max_cache:100
cache_time:0
class_name:
class_file:
</dtml-comment>
<params>table_0
table_1</params>
((<dtml-var table_0>.is_accountable = 0
AND <dtml-var table_0>.uid = catalog.parent_uid
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid)
OR
(<dtml-var table_0>.is_accountable = 1
AND <dtml-var table_0>.uid = catalog.uid
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid))
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