GithubHelp home page GithubHelp logo

Comments (3)

himeshr avatar himeshr commented on August 10, 2024

This code change would require change in rules for following FormElements across multiple organisations:

select o.name, form_element.name, form_element.uuid
from form_element
join organisation o on form_element.organisation_id = o.id
where rule like '%nrolment.individual.affiliatedGroups%';

# name name uuid
1 JSSCP UAT Enrolment ID a2628836-c7cb-4557-ad21-eb2172f07f2d
2 JSS Singrauli UAT Enrolment ID cb2328f2-8245-446e-89ca-b6e2f58ea700
3 JSSCP Enrolment ID a2628836-c7cb-4557-ad21-eb2172f07f2d
4 JSS Enrolment ID cb2328f2-8245-446e-89ca-b6e2f58ea700
5 JSSCP Support Enrolment ID a2628836-c7cb-4557-ad21-eb2172f07f2d
6 Achala Test Enrolment ID a2628836-c7cb-4557-ad21-eb2172f07f2d
7 JSSCP UAT NEW Enrolment ID a2628836-c7cb-4557-ad21-eb2172f07f2d
8 Mobile creches Enrolment ID cb2328f2-8245-446e-89ca-b6e2f58ea700

Old Rule snippet

const phulwariName = _.get(_.find(programEnrolment.individual.affiliatedGroups, ({voided}) => !voided), ['groupSubject', 'firstName'], '');

New Rule snippet

const phulwariName = _.get(_.find(params.entityContext.affiliatedGroups, ({voided}) => !voided), ['groupSubject', 'firstName'], '');

##Support ticket
https://avni.freshdesk.com/a/tickets/2925

from avni-models.

vinayvenu avatar vinayvenu commented on August 10, 2024

@himeshr added to release card - avniproject/avni-client#1021

from avni-models.

himeshr avatar himeshr commented on August 10, 2024

Dev testing done on staging environment for :

  1. Subject registration summary has GroupAffiliation msg (Phulwari org)
  2. Enrolment to program has Enrolment ID auto generated based on GroupAffiliation (JSS SIngrauli org)

Attached screen shots for the same:

EnrolmentIdAutoGenerationBasedOnGroup SubjectRegistrationSummaryGroupAffiliationMsg

from avni-models.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.