Skip to content
Snippets Groups Projects
Commit 594b23e7 authored by SNA's avatar SNA
Browse files

FEAT#1522: filtre sur le statut des attachments.

parent 9efc2f72
No related branches found
No related tags found
No related merge requests found
...@@ -3639,7 +3639,7 @@ CREATE VIEW res_view_letterbox AS ...@@ -3639,7 +3639,7 @@ CREATE VIEW res_view_letterbox AS
FROM doctypes d, doctypes_first_level dfl, doctypes_second_level dsl, FROM doctypes d, doctypes_first_level dfl, doctypes_second_level dsl,
(((((((((((ar_batch a RIGHT JOIN res_letterbox r ON ((r.arbatch_id = a.arbatch_id))) (((((((((((ar_batch a RIGHT JOIN res_letterbox r ON ((r.arbatch_id = a.arbatch_id)))
LEFT JOIN (SELECT res_attachments.res_id_master, count(res_attachments.res_id_master) AS count_attachment LEFT JOIN (SELECT res_attachments.res_id_master, count(res_attachments.res_id_master) AS count_attachment
FROM res_attachments GROUP BY res_attachments.res_id_master) att ON (r.res_id = att.res_id_master)) FROM res_attachments WHERE res_attachments.status <> 'DEL' GROUP BY res_attachments.res_id_master) att ON (r.res_id = att.res_id_master))
LEFT JOIN entities en ON (((r.destination)::text = (en.entity_id)::text))) LEFT JOIN entities en ON (((r.destination)::text = (en.entity_id)::text)))
LEFT JOIN folders f ON ((r.folders_system_id = f.folders_system_id))) LEFT JOIN folders f ON ((r.folders_system_id = f.folders_system_id)))
LEFT JOIN cases_res cr ON ((r.res_id = cr.res_id))) LEFT JOIN cases_res cr ON ((r.res_id = cr.res_id)))
...@@ -3745,4 +3745,4 @@ CREATE VIEW view_contacts AS ...@@ -3745,4 +3745,4 @@ CREATE VIEW view_contacts AS
ca.website, ca.salutation_header, ca.salutation_footer, ca.other_data, ca.user_id, ca.entity_id, ca.is_private ca.website, ca.salutation_header, ca.salutation_footer, ca.other_data, ca.user_id, ca.entity_id, ca.is_private
FROM contacts_v2 c FROM contacts_v2 c
RIGHT JOIN contact_addresses ca RIGHT JOIN contact_addresses ca
ON c.contact_id = ca.contact_id; ON c.contact_id = ca.contact_id;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment