Versions Compared

Key

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

...

Expand
titleCar Allowance (regular) / KM-godtgjørelse (regular)

Once the rates are in place we need to create a payment transaction under the Payroll > Entry Codes.

Info

Note: In our case we use global rates 21 and 22 for the calculation. But you may use different ones.

Here what needs to be done:

  1. Under the General tab fill in the entry Name and set it to Allowance.

  2. Under the Input tab setup the following fields.

  3. Under the calculation tab define the necessary accounts and accounting dimensions.
    Then create a separate script for the Car Allowance calculation.


    This is the example of the script that you can create. Click here to learn more about the scripts.
    In our case we use global rate 21 and 22 for the calculation. But you may use different ones.

    Code Block
    languagenone
    //Setting Employer
    //Here you need to add a line for calculating the employer organization 
    //e.g. @@ADD:007.
    //You can check your other other entries for 
    
    //L23 - Input field 3 used for Rate
    //GB21 = Global rate line 21 for max allowance rate
    
    L23=GB21
    
    //L61 - calculated amount 1 
    //L67 - calculated amount 7
    //L22 - Input field 2 used for Kilometer
    //L23 - Input field 3 used for Rate
    //L21 - Input field 1 used for Amount
    
    L61=L22*L23
    L21=L61
    L67=L21
    
    //Calculation of taxable amount (Fordeling av skattepliktig beløp)
    //GB22 = Global rate line 22 for car allowance non -taxable rate
    //GB21 = Global rate line 21 for max allowance rate
    //(GB21-GB22) - taxable part
    //L67 - calculated amount 7
    //L69 - calculated amount 9
    //L70 - calculated amount 10
    
    IF GB21 > GB22 THEN
      L70=(GB21-GB22) * L22
      L69=L67-L70
    ELSE
      L70=0
      L69=L67
    ENDIF
    
    //L62 - calculated amount 2
    //W81 - accumulator for tax table
    //P50c - Company rate for region
    
    W81=W81+L70       //Taxable (Skattepliktig) 
    L62=L70*P50c      //Employers fee

  4. Setup the fields to be available on the Payslip.

  5. Set the following EDAG coding.

Expand
titleCar Allowance (non taxable)

This entry is setup almost in the same way as the Car Allowance (regular) entry.

The only difference is in the script and EDAG coding.

  1. The script would be simple:

    Code Block
    //Setting Employer
    //Here you need to add a line for calculating the employer organization 
    //e.g. @@ADD:007.
    //You can check your other other entries for 
    
    //GB22 = Global rate line 22 for car allowance non taxable rate
    //L23 - Input field 3 used for Rate
    
    L23=GB22
    
    //L22 - Input field 2 used for Kilometer
    //L23 - Input field 3 used for Rate
    //L61 - calculated amount 1 
    
    L61=L22*L23

  2. The EDAG coding should be like that:

Expand
titleCar Allowance (Commuter) / KM-godtgjørelse (Pendler)

Once the rates are set we need to create a payment transaction under the Payroll > Entry Codes.

Info

Note: In our case we use vessel rates 5 and 6 for the car allowance (Commuter).

Here what needs to be done:

  1. Under the General tab fill in the entry Name and set it to Allowance.

    Image Added

  2. Under the Input tab setup the following fields.

    Image Added

  3. Under the calculation tab define the necessary accounts and accounting dimensions.
    Then create a separate script for the Car Allowance calculation.

    Image Added


    This is the example of the script that you can create. Click here to learn more about the scripts.
    In our case we use global rate 21 and 22 for the calculation. But you may use different ones.

    Code Block
    languagenone
    //Setting Employer
    //Here you need to add a line for calculating the employer organization 
    //e.g. @@ADD:007.
    //You can check your other other entries for 
    
    //L23 - Input field 3 used for Rate
    //VB5 = Vessel rate line 5 for max allowance rate
    
    L23=VB5 
    
    //L61 - calculated amount 1 
    //L67 - calculated amount 7
    //L22 - Input field 2 used for Kilometer
    //L23 - Input field 3 used for Rate
    //L21 - Input field 1 used for Amount
    
    L61=L22*L23
    L21=L61
    L67=L21
    
    //Calculation of taxable amount (Fordeling av skattepliktig beløp)
    //VB6 = Vessel rate line 6 for non-taxable rate
    //VB5 = Vessel rate line 5 for max rate
    //(GB5-GB6) - taxable part
    //L67 - calculated amount 7
    //L69 - calculated amount 9
    //L70 - calculated amount 10
    
    IF GB5 > GB6 THEN
      L70=(GB5-GB6) * L22
      L69=L67-L70
    ELSE
      L70=0
      L69=L67
    ENDIF
    
    //L62 - calculated amount 2
    //W81 - accumulator for tax table
    //P50c - Company rate for region
    
    W81=W81+L70       //Taxable (Skattepliktig) 
    L62=L70*P50c      //Employers fee

  4. Setup the fields to be available on the Payslip.

    Image Added

  5. Set the following EDAG coding.

    Image Added