...
Create a new permanent accumulator to transfer the Svalbard Leave Pay balance to next year.
Create a new entry code to transfer the Svalbard Leave Pay balance to next year.
In the script of the entry code write the following:Code Block //L63 - calculated amount 3 (we use it for the total leave pay) //W171W173 - Svalbard Leave Pay balance in current year //Setting Employer @@ADD:007 //setting the limit IF L61 > ((GB10 * 6) * GB7)/100 THEN L63 = ((GB10 * 6) * GB7)/100 ELSE L63=W173 ENDIF ENDIF
The Svalbard entry code should be prioritized over the regular Norwegian entry. Thus the Norwegian wages Leave pay amount should be reduced if the total goes over the 6G limit.
The limit here is usually calculated based on the global rates:((GB10 * 6) * GB7)/100
Where GB10 - 1G amount, GB7 - leave pay rate over 60.
We multiply the 1G amount with 6 to get the 6G amount, then we multiply this by the leave pay rate over 60 and divide by 100 to get the right percentage.
Create a temporary accumulator to compare the amounts from Regular Leave Pay and Svalbard Leave Pay and set the proper limit for the amount. In the script add the following condition:Code Block //W70 - temporary accumulator to compare the amounts from Regular Leave Pay and Svalbard Leave Pay //L63 - calculated amount 3 (used for leave pay total) //collecting the amount to compare it with the amount //on the regular Norwegian Leave Pay over 60 W70 = L63
Set proper calculation priority. The entry code for Svalbard Leave Pay must be set with higher priority than the regular Norwegian Leave Pay payment entry code.
e.g. Svalbard Leave Pay - 0, Regular Leave Pay - 5Go to the Accumulator tab for the new entry code. Find the new permanent accumulator and set the formula to zero out the leave pay total when this entry is added @L61*(-1).
...
Create a separate entry code to calculate Svalbard Leave Pay over 60.
The script for Svalbard will only check and reduce the amount to stay within the 6G limit, in addition, a temporary accumulator with the amount must be set. In our example, we will use:
Code Block //L61 - calculated amount 1 to be added to Net Wages. //L21 - displayed amount //W174 - permanent accumulator for the Svalbard Leave Pay (previous year) //pay out the balance from last year L61=W174 ENDIF //Display amount = calculated amount L21=L61
Set proper calculation priority. The entry code for Svalbard Leave Pay must be set with higher priority than the regular Norwegian Leave Pay payment entry code.
e.g. Svalbard Leave Pay - 0, Regular Leave Pay - 5
Step 2: Adding limit on regular Norwegian Leave Pay
The Svalbard entry code should be prioritized over the regular Norwegian entry. Thus the Norwegian wages Leave pay amount should be reduced if the total goes over the 6G limit.
The limit here is usually calculated based on the global rates:((GB10 * 6) * GB7)/100
Where GB10 - 1G amount, GB7 - leave pay rate over 60.
We multiply the 1G amount with 6 to get the 6G amount, then we multiply this by the leave pay rate over 60 and divide by 100 to get the right percentage.In the script for Regular Leave Pay, we check if there is any amount left within the 6G limit to be paid out.
Code Block //L61 - calculated amount 1 to be added to Net Wages. //L21 - displayed amount //W127 - permanent accumulator for the Regular Leave Pay //W70 - temporary accumulator to compare the amounts from Regular Leave Pay and Svalbard Leave Pay IF W70 > "limit" THEN L61 = 0 ELSE IF W70 + W127 > Limit THEN L61 = "limit" - W70 ELSE IF W70 + W127 < "limit" THEN L61 = W127 ENDIF ENDIF ENDIF //Display amount = calculated amount L21=L61
Set proper calculation priority. The entry code for Svalbard Leave Pay must be set with higher priority than the regular Norwegian Leave Pay payment entry code.
e.g. Svalbard Leave Pay - 0, Regular Leave Pay - 5
Close year procedure
...