Constructor
new InjectorCompanyVehicle(skv_config, arr_tax_years)
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | Struct passed in when initializing the injector |
arr_tax_years |
array | Array of tax years to add basic salary to |
Methods
(static) adjustBIKbySalarySacrifice(str_type, skv_config, skv_bik, ulev_salsac_co2_threshold) → {struct}
Description
Parameters:
Name | Type | Description |
---|---|---|
str_type |
string | fuel / vehicle |
skv_config |
struct | |
skv_bik |
struct | |
ulev_salsac_co2_threshold |
number |
Returns:
bik and allowance sacrificed
- Type
- struct
(static) calculate(skv_config, arr_tax_years) → {array}
Calculate benefit in kind
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | |
arr_tax_years |
array | Basic tax years |
Returns:
Amended tax years with benefit calculated
- Type
- array
(static) calculateSingleYear(skv_config, skv_income, skv_tax_charges) → {struct}
Calculate the benefit for a single year - work out elec/van/salsac stuff
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | |
skv_income |
struct | |
skv_tax_charges |
struct |
Returns:
Completed income struct
- Type
- struct
(static) calculateStandardBIK(str_type, skv_tax_company_vehicle) → {struct}
work out the vehicle or fuel bik (no allowance sacrifice or anything complicated like that)
Parameters:
Name | Type | Description |
---|---|---|
str_type |
string | fuel or vehicle |
skv_tax_company_vehicle |
struct |
Returns:
bik, bik_capcon_diff, bik_anncon_diff
- Type
- struct
(static) getBenefit(str_type, skv_tax_charges) → {number}
Description
Parameters:
Name | Type | Description |
---|---|---|
str_type |
string | fuel / vehicle |
skv_tax_charges |
struct |
Returns:
- Type
- number
(static) setup(skv_config, arr_tax_years) → {array}
Do the setup to get basic structs for income
Parameters:
Name | Type | Description |
---|---|---|
skv_config |
struct | Struct passed in when initializing the injector |
arr_tax_years |
array | Array of tax years to add basic salary to |
Returns:
Amended tax years
- Type
- array