Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article describes how to set up the entry code for Sjømannsforbundet/Seaman Union with a max amount per month

Description

The entry code "Trekk to Sjømannsforbundet" has a max amount of NOK 700,- per month


Solution

On Global Rates (Setup | Organization) the amount must be stored in one of the lines. 

...


The script will normally be as follows: 

IF L21<>0 AND L97="N" THEN

L61=L21

ELSE

IF PR3="N" THEN

L61=0

ELSE

IF PR3="OFF" THEN

L61=0

ELSE

L61=[(W41*GB34)/100]                 //Posteringsbeløp

L24=W41

L23=GB34+%

ENDIF

ENDIF

ENDIF


//Max amount in the month

//The amount is stored in Global Rates line 47

IF L97<>"N" AND L61>GB47 THEN

L61=GB47

ENDIF


W84=W84+L61