diff --git a/build/snap_cust_pool.sql b/build/snap_cust_pool.sql index 106fc6a..fcfa67a 100644 --- a/build/snap_cust_pool.sql +++ b/build/snap_cust_pool.sql @@ -55,6 +55,8 @@ FROM rlarp.repc r WHERE r.rcode = o.dsm - AND quota_rep_descr <> (regexp_match(r.repp,'.* - (.*)$'))[1]; - + AND ( + quota_rep_descr <> (regexp_match(r.repp,'.* - (.*)$'))[1] + OR o.director <> r.director + ); COMMIT;