Global

Methods

applyEmployerKeepsNIpercentage(param_name) → {data_type}

Source:

Description

Parameters:
Name Type Description
param_name data_type

Description

Returns:

Description

Type
data_type

buildInit(param_name) → {data_type}

Source:

Description

Parameters:
Name Type Description
param_name data_type

Description

Returns:

Description

Type
data_type

buildWithoutSalsac(param_name) → {data_type}

Source:

Description

Parameters:
Name Type Description
param_name data_type

Description

Returns:

Description

Type
data_type

buildWithSalsac(param_name) → {data_type}

Source:

Description

Parameters:
Name Type Description
param_name data_type

Description

Returns:

Description

Type
data_type

calculateBCHcost(skv_config) → {struct}

Source:

calculate bch costs inc irrecoverable vat

Parameters:
Name Type Description
skv_config struct
Returns:

bch cost and irrecoverable vat

Type
struct

create(skv_config, instruction) → {struct}

Source:

Build starting config

Parameters:
Name Type Description
skv_config struct
instruction string

init/withsalsac/withoutsalsac

Returns:

built config

Type
struct

getAverageErNIrate(arr_tax_years) → {number}

Source:

salsac is based on an average over the period so get an average of the employer NI

Parameters:
Name Type Description
arr_tax_years array
Returns:
Type
number

getTaxYears(skv_config, arr_tax_charges, arr_tax_company_vehicle) → {array}

Source:

Do the forecast for the period covered

Parameters:
Name Type Description
skv_config struct
arr_tax_charges array

income tax, nic rates for the period retrieved from pluto

arr_tax_company_vehicle array

vehicle benefit, co2 percentage charge for the period retrieved from pluto

Returns:

Tax years

Type
array

removeVAT(value_inc_vat, vat_percentage) → {number}

Source:

Remove VAT from a value that includes VAT (gross) to get net amount

Parameters:
Name Type Description
value_inc_vat number

Value with VAT (gross)

vat_percentage number

VAT percentage

Returns:
Type
number