Zmiany pomiędzy wersją 64 and wersją 65 dla DeployerGuide/Customization/ProcessAutomation/Examples
- Data i czas:
- 12/31/18 12:13:07 (6 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
DeployerGuide/Customization/ProcessAutomation/Examples
v64 v65 132 132 133 133 W15. 134 -- sprawdzenie czy są uzupełnione cechy na fakturze do którego odbiorcy, lub klienta końcowego oznaczonego na cesze faktury jako klient z bazy - jest kierowana faktura134 -- sprawdzenie czy są uzupełnione cechy na fakturze do którego nabywcy (lub odbiorcy jeśli jest uzupełniony) , albo klienta końcowego oznaczonego na cesze faktury jako klient z bazy - jest kierowana faktura - są uzupełnione cechy typ. segment, źródło, branża 135 135 SELECT x.typ IS NOT NULL 136 136 AND x.segment IS NOT NULL … … 139 139 FROM ( 140 140 SELECT 141 (SELECT text_sum(ftopnm) FROM features_opt_view fop WHERE fop.featid = 12 AND fop.ftopid IN (7,9, 28) AND fop.tbl_id = (COALESCE(ftv.data__::int, v.toctid))) AS typ,142 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 11 AND fop.tbl_id = (COALESCE(ftv.data__::int, v.toctid))) AS segment,143 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 17 AND fop.tbl_id = (COALESCE(ftv.data__::int, v.toctid))) AS zrodlo,144 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 13 AND fop.tbl_id = (COALESCE(ftv.data__::int, v.toctid))) AS branza141 (SELECT text_sum(ftopnm) FROM features_opt_view fop WHERE fop.featid = 12 AND fop.ftopid IN (7,9, 28) AND fop.tbl_id = (COALESCE(ftv.data__::int, c1.contid))) AS typ, 142 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 11 AND fop.tbl_id = (COALESCE(ftv.data__::int, c1.contid))) AS segment, 143 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 17 AND fop.tbl_id = (COALESCE(ftv.data__::int, c1.contid))) AS zrodlo, 144 (SELECT ftopnm FROM features_opt_view fop WHERE fop.featid = 13 AND fop.tbl_id = (COALESCE(ftv.data__::int, c1.contid))) AS branza 145 145 FROM documents d 146 146 INNER JOIN vatnote v USING(doc_id) 147 INNER JOIN contacts c1 ON c1.contid = v.toctid147 INNER JOIN contacts c1 ON c1.contid = COALESCE(v.rectid, v.toctid) 148 148 LEFT JOIN features_text_view ftv ON ftv.tbl_id = d.doc_id AND ftv.featid = 15 -- klient końcowy 149 149 LEFT JOIN contacts c2 ON c2.contid = ftv.data__::int 150 WHERE d.doc_id = 352273) x150 WHERE d.doc_id = {DOC_ID}) x 151 151 152 152