Skip to Content
0
Former Member
Mar 14, 2009 at 01:31 PM

Discount Association

17 Views

Good Morning.

I have the following issue:

In the company there are a Discount with wage type 1A30 "Discount Association".

For calculate this discount the system have that do the following:

1. Get the Salary of the employee(Infotype 0008)

2. Count and Add the days of some wate type ie. Salary, vacations,and others).

Having this datas.

The system do the following operation:

WageType 1A30 = ( ( Salary / 30 ) * Days calculated in the point 2 ) * 1%.

So far no problem. The problem is the following:

Ie. If the payroll period is 01/04/2008 to 30/04/2008 and the employee have vacations of 25/04/2008 to 05/05/2008. The system have that create a wate type 1A40 "Discount Association Advance" of the following form:

A. Get the Salary of the employee(Infotype 0008)

B. Count and Add the days of vacations that not is in the payroll period, in the example, the days of 01/05/2008 to 05/05/2008, in this case are 5.

WageType 1A40 = ( ( Salary / 30 ) * Days calculated in the point B ) .

But the system only pay in the payroll period the discount by the wate type 1A30 and in the next mount the system have that substract the value calculated in the month of May by the wate type 1A30 the wage type 1A40.

1A30 = 1A30 - 1A40.

The Question is ¿ How can I do this of the point B?

Kinf Regards.