OpenFn / primero-progres

Interoperability solution for UNICEF <> UNHCR interagency referrals between Primero and Progres v4 systems.
https://openfn.github.io/primero-progres/
0 stars 2 forks source link

Update 1.b.sendReferrals.js #31

Closed daissatou2 closed 3 years ago

aleksa-krolls commented 3 years ago

@daissatou2 do we also want to check for rejected status (assumming that's the right picklist valu ename)? Shouldn't we send any decision back to Progres?

If yes, now wondering if the logic should be as follows (but pls make sure these values are right).

&& (serv.unhcr_referral_status = 'accepted' || serv.unhcr_referral_status = 'rejected')