Zmiany pomiędzy wersją 7 and wersją 8 dla DeployerGuide/Customization/ProcessAutomation/Examples
- Data i czas:
- 01/19/12 20:54:52 (13 years temu)
Legend:
- Bez zmian
- Dodane
- Usunięte
- Zmienione
-
DeployerGuide/Customization/ProcessAutomation/Examples
v7 v8 64 64 SELECT ARRAY(SELECT o.orunid FROM orgtree_view WHERE o.usr_id IN ({procedures.OSOBY})) 65 65 66 -- 67 -- P6. Przypisanie osoby odpowiedzialnej za MPK wpisane w fakturze (do etapu MULTI) 68 SELECT ARRAY ( 69 SELECT CASE 70 WHEN x.ndetpe = 'POST' THEN x.orunid 71 WHEN x.ndetpe = 'ORGCELL' THEN (SELECT o2.orunid FROM orgtree_view o2 WHERE o2.prn_id = x.orunid LIMIT 1) END 72 FROM 73 (SELECT DISTINCT mpk.orunid, o.ndetpe FROM vatnote_costs 74 LEFT JOIN places_of_vcosts AS mpk USING (povcid) 75 LEFT JOIN orgtree_view AS o ON mpk.orunid = o.orunid 76 WHERE doc_id = {DOC_ID}) 77 AS x) 78 66 79 }}} 67 80