cancel
Showing results for 
Search instead for 
Did you mean: 

Write PCR based on a date condition

LobnaD
Explorer
0 Kudos
151

Dears,

I need to write a PCR based on a date condition. I need to write that starting from 01/01/2025 go to that calculation, other than that date go to calculation rule X

I've went to V_T511k and added a constant with 0 amount from 01.01.1990 till 31.12.2024, and starting from 01.01.2025 with amount 1

*
6020 
ADDWT * OT 
AMT=KZTAX1
PRINT 
AMT?0 
*
GCY ZTXR 
>
GCY ZTX4A

the point is that when am running the payroll it's not processing as presented in the attached screenshot 

LobnaD_0-1738520784324.png

would you please guide how to solve the issue.

Many Thanks.

View Entire Topic
Damien_Barnes
Explorer
0 Kudos

It looks like you need to add the Rule Type "Z" into the lines so that it will jump to the sub rules and add the subrule that you want to call....the rule below is a slightly modified version

If the value of constant ZTAX1 = 0 then jump to Rule ZTXR - Employee Subgrouping A
If the value of constant ZTAX1 <> 0 then jump to Rule ZTX4 - Employee Subgrouping B 

Damien_Barnes_0-1738537130694.png

 

LobnaD
Explorer
0 Kudos

Hello Barnes,

Thanks for your cooperation, but I believe that my PCR is already as the one you have suggested

LobnaD_0-1739103784105.png

So, do you have any suggestions how to solve that issue.

Many Thanks

Damien_Barnes
Explorer
0 Kudos

Looking back at the original message it looks like it's jumping to to the "A" subrule and that's where it's stopping.

So it relates to the Variable ZNTX1. Can you share the rest of your rule? If you print the rule (Menu: Rule > Print) you can see the whole rule