pbare
Well Known Member
I need to modify an existing JDE C Business function
B4300140 in the CDIST.dll. The function that I need to change is the DetermineAppoverAtNextLimit.
The scenario that I need to fix is related to Approval Routes and delegations
My business users came across the following:
Have a route set up like:
From Amount Person (iD)
1 913255 Pam
100,001 955452 Janet
500,001 988785 Shaun
1,000,001 988722 Mel
Create a Purchase Order for 750,000 and select this particular route
Everything works correctly until a Delegate is specified. For this route, we want to delegate the third approvers (Shaun) limit to the second approver (Janet). So now our route looks like this:
From Amount Person (iD)
1 913255 Pam
100,001 955452 Janet
500,001 955452 Janet
1,000,001 988722 Mel
Now 955452 (Janet) should have a limit of 1,000,000. Everything seems to work as expected until Janet goes into P43081 and selects the order to approve.
Right now, the system seems to think that Mel still needs to approve the order even though it is below her threshold. It should have been approved by Janet.
I have been stepping through the code and have found in the DetermineApproverAtNextLimit function has a Math Copy line
(MathCopy (&mnCurrentApproverLimit, &dsFetchFromF43008.apalim)
This line is only retrieving Janet's original amount of 100,001 instead of 500,001.
My question is how to I write code to tell the system to check for more than one record in the F43008 table for that Approver.
Any thoughts/help would be appreciated. I do know that the ideal solution would not involve changing the base JDE code but I haven't found a different solution yet.
Thanks in advance for any help
Pam
B4300140 in the CDIST.dll. The function that I need to change is the DetermineAppoverAtNextLimit.
The scenario that I need to fix is related to Approval Routes and delegations
My business users came across the following:
Have a route set up like:
From Amount Person (iD)
1 913255 Pam
100,001 955452 Janet
500,001 988785 Shaun
1,000,001 988722 Mel
Create a Purchase Order for 750,000 and select this particular route
Everything works correctly until a Delegate is specified. For this route, we want to delegate the third approvers (Shaun) limit to the second approver (Janet). So now our route looks like this:
From Amount Person (iD)
1 913255 Pam
100,001 955452 Janet
500,001 955452 Janet
1,000,001 988722 Mel
Now 955452 (Janet) should have a limit of 1,000,000. Everything seems to work as expected until Janet goes into P43081 and selects the order to approve.
Right now, the system seems to think that Mel still needs to approve the order even though it is below her threshold. It should have been approved by Janet.
I have been stepping through the code and have found in the DetermineApproverAtNextLimit function has a Math Copy line
(MathCopy (&mnCurrentApproverLimit, &dsFetchFromF43008.apalim)
This line is only retrieving Janet's original amount of 100,001 instead of 500,001.
My question is how to I write code to tell the system to check for more than one record in the F43008 table for that Approver.
Any thoughts/help would be appreciated. I do know that the ideal solution would not involve changing the base JDE code but I haven't found a different solution yet.
Thanks in advance for any help
Pam