Yes.
You can compute 13th month pay or any variable based on accumulated amounts for the year or month.
You may use MonthPay.VariableName to get the total of VariableName for the month (excluding the current period).
Example: MonthPay.GrossPay will give you the total of GrossPay for the month, but excluding the current period.
You may use YearPay.VariableName to get the total of VariableName for the year (excluding the current period).
Example: YearPay.GrossPay will give you the total of GrossPay for the year, but excluding the current period. |