diff --git a/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedDestination.zsql b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedDestination.zsql
new file mode 100755
index 0000000000000000000000000000000000000000..8dece5948ea45b8d5bbde6832999d08acac9f034
--- /dev/null
+++ b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedDestination.zsql
@@ -0,0 +1,24 @@
+<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
diff --git a/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedQuantity.zsql b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedQuantity.zsql
new file mode 100755
index 0000000000000000000000000000000000000000..3ef8fb1700d19c4756cd74b0d8358e4503bfd3e6
--- /dev/null
+++ b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedQuantity.zsql
@@ -0,0 +1,22 @@
+<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
diff --git a/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedSource.zsql b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedSource.zsql
new file mode 100755
index 0000000000000000000000000000000000000000..3c355fac502bd90d2b6adadbad89b5431974e66f
--- /dev/null
+++ b/product/ERP5/skins/erp5_trade/DeliveryLine_zGetRelatedSource.zsql
@@ -0,0 +1,24 @@
+<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