
Hi All,
I am trying to to create a payroll management application, I created a Salary Structure list where user can add different breakdown of allowances and their percentage that would make up for the gross pay. Now, I want to calculate the salary of each employee based on the amount supplied for the gross amount on the employee card (I have extended the employee card) so that I can display it on the employee card as a listpart.
Sample Code (on Employee Card Extension):
Trigger
...
Move this line:
counter := 1;
over your repeat loop.
You are setting this value to one for every repeat and that is what cause the problem.
so instead it should be
counter := 1;
repeat