diff --git a/HCAS/HCAS.sql b/HCAS/HCAS.sql index 4192141de..6ccfdafb3 100644 --- a/HCAS/HCAS.sql +++ b/HCAS/HCAS.sql @@ -92,6 +92,15 @@ BEGIN UPPER (I.PRS_PERSLID_OSLOGIN)) WHERE i.fac_import_key = p_import_key; + UPDATE fac_imp_perslid i + SET i.prs_perslid_mobiel = + (SELECT p.prs_perslid_mobiel + FROM prs_perslid p + WHERE p.prs_perslid_verwijder IS NULL + AND UPPER (P.PRS_PERSLID_OSLOGIN) = + UPPER (I.PRS_PERSLID_OSLOGIN)) + WHERE i.fac_import_key = p_import_key; + -- Afdelingsomschrijving ingelezen in kenmerk; op basis daarvan de afdelingscode -- invullen (verplicht veld afdelingscode tijdelijk gevuld met oslogin). UPDATE fac_imp_perslid i