Does anyone have an example of creating a custom compute (Administrator->Setup->Custom Compute) or (Payroll Administrator->Setup->Custom Compute) or (Absence Management->Setup->Custom Compute)
We are transitioning from s3 to Global payroll and need to convert some user exit calculations from S3 to custom computes for deduction/pay calculations that don't conform to Infor delivered calculation options.
The calculation is not difficult but there is zero documentation on the syntax for creating the compute statement. I assumed it would be similar to a derived field in the user field configuration however this is not the case. Entering something as simple as return 1 or just 1 fails during a manual payment calculation with the following.
Unable to parse compute for EmployeeDeduction. "EmployeeDeduction" (line 1, column 0) : Error : Invalid 'Derived Fields' statement: Expected '( is a ConditionalField | is a ComputeField | is a StringField | is a MessageField | is a LabelField | is a NativeField | is an InstanceCount | is an aggregation of )'. >return 1 >^
Reading this... I tried starting with (is a ComputeField with definition etc which then failed with (is a ComputeField is not valid because it doesn't start with a capital blah blah blah. Through trial and error I've gotten it to this point
Foo is a ComputeField
type is Decimal size 9.2
precision is 2
round to precision
(2.24 * 10.111)
It likes everything up to the (2.24 * 10.111) which it says "is not expected or valid in this context.
I would expect to be able to access any field in the EmployeeDeduction business class and or any related entity and perform normal mathematical computations...
Any assistance is appreciated.
1 tip. If you want to create a custom compute for a deduction code and have it display in the drop down from the deduction code custom calculation list you have to give your custom calc a subject of HCMComputeDeductionCode