on 12-23-2014 3:20 PM
Hi Experts
I am facing a problem regarding the syntax of a customized payroll PCR.
The PCR is designed to deduct 2 wage types, and add the result on a third wage type. The syntax written was as the following:
*
9501 Gain Work Tax
ADDWT * OT Output table
AMT- 3046 Subtraction
SUBWT 3047 OT Output table
The problem is in the subtraction part, as its not working. When I checked the IT for the rule in the payroll log, I found only wage type 9501 ,while 3046 is not available, although it is calculated in another previous PCR.
I appreciate your feedback.
Thanks in advance.
Hi,
I think you would like do the following arithmetic calculation in your custom pcr.
WT3047=WT9501-WT3046 Am i correct?. If i am correct then do the below way.
*
9501
ADDWT *
AMT= 9501 (after = give one space)
AMT- 3046 (after - give one space)
ADDWT 3047(after ADDWT give one space)
****
ADDWT *
Check this.
Regards,
Sankarsan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you saying that WT3046 is generated in the previous sub schema?
Then tell me what's the pcr you have written for WT3046 generation.
Are you used ADDWTE3046 in the pcr? If then change it to ADDWT 3046. or if you don't want it into Input table and pass the WT3046 value to variable wage type &3046 like the operation ADDWT&3046.
And in the current which we are working change the AMT- 3046 to AMT-& 3046.
Check and tell me.
Regards,
Sankarsan
Modify PCR slightly where you wanted to deduct 2 wage types then later you can use ADDWT SUBWT according to the requirement.
XXXX is 10000 YYYY,ZZZZ is 1000
AMT- YYYY(10000-1000)
AMT- ZZZZ(9000-1000)
SUBWT AAAA(-8000 will be stored in AAAA)
FILLF ANR
ADDWT XXXX(XXXX will hold the value 10000 in output table).
Regards
Venkatesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Write PCR as mentioned below.
9051
AMT- 3046(10000-1000)
ADDWT 3047(9000 will be stored in 3047)
FILLF ANR
ADDWT 9501(9501 will hold the value 10000 in output table).
and check from where 3046 is getting calculated and whether it is there in Input table or not if not we have to pass the wage type 3046 to Input table then it works.
Regards
Venkatesh
As mentioned there is a rule which is calculating 3046 whether it is calculating 3046 or not check. place the same what logic is being used to calculate 3046 and where exactly it is been placed in schema.
Further more rule which has been written for 9501 calculation where exactly it is placed in schema.
The PCR which has been written for the 3046 calculation should read first in the schema then later 9501 PCR should read.
Regards
Venkatesh
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.