Hi All,
Need some help on the PCR. The PCR does the right calculation based on the number of years.
If 0-5 years, Basic salay + HRA /2
If >5 then basic salay /365 * No. of days
My problem is whenever an employee crosses the 5 year mark, the calculation needs to be that the first 0-5 years does the calculatoin as mentioned and anything above 5 years shd do as written. The total of both the calculations shall then be the provision for that particular month. This is not working with the below PCR and I need help.
What do I need to do to get it right.
000010 D WGTYP?
000020 **** ADDWT *
000030 2120 D NUM?0
000040 2120 < ADDWT *
000050 2120 = AMT= 1000AMT+ 1010AMT+ 1050AMT/2 AMT/365 NEXTR A
000060 2120 = A AMT*TKDIVIADDWT 7801ADDWT *
000070 2120 > D NUM?60
000080 2120 > < AMT= 1000AMT+ 1010AMT+ 1050AMT/2 AMT/365 NEXTR A
000090 2120 > < A AMT*TKDIVIADDWT 7801ADDWT *
000100 2120 > = AMT= 1000AMT+ 1010AMT+ 1050AMT/2 AMT/365 NEXTR A
000110 2120 > = A AMT*TKDIVIADDWT 7801ADDWT *
000120 2120 > > AMT= 1000AMT+ 1010AMT+ 1050AMT/365 AMT*TKDIVINEXTR A
000130 2120 > > A ADDWT 7801ADDWT *
Thanks & regards,
Majid