What's new in Customer Journeys?

Connect and learn more! ×
Sum up the absence leaves — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Sum up the absence leaves

Received Response
60
Views
2
Comments

Summary:

I'm using Arrays to sum up the leaves taken between two dates. Below is the given code. It is working fine for absence type with 1 plan attached. But is giving double result in a case where there are 2 plans attached to 1 absence type like in case of statutory leaves. Is there a way where we can get only single value instead of double for statutory leaves?

Content (required):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

j = 1

leave_duration1 = 0

leave_duration2 = 0

hours_per_day = 0

WHILE ABS_EXT_PLN_PER_ABSENCE_ENTRY_ID.exists(j) LOOP

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!