Taxation

Taxation related helpers

Returns an object that contains taxation information and helper methods.

Arguments

$name
Taxation type
$amount
Multiplier for calculationg taxation
If given, get() returns number not the eTaxation class!

Example

Get default VAT

$vatNormal = $this->get('taxation', 'alv');

Basic use

Get up-to-date kilometrikorvaus unit cost:

$costPerKm = $this->get('taxation', 'kilometrikorvaus');

// This is shorthand for:
$costPerKm = $this->get('taxation')->getCost('kilometrikorvaus');

Count kilometrikorvaus for given distance distance:

$costPerKm = $this->get('taxation', 'kilometrikorvaus', $Work->distance);

// This is shorthand for:
$costPerKm = $this->get('taxation')->countCost('kilometrikorvaus', $Work->distance);

Taxation in certain date

You can set a specifig date before getting the cost:

$costPerKm = $this->get('taxation')->setDate($date)->getCost('kilometrikorvaus');

Full method list

Method Return Description
getCost(name) number Return up to date value for given cost. (see list below)
countCost(name,amount) number Count cost for given type and amount
getOsapaivaraha() number Return osapaivaraha value
getPuolipaivaraha() number Return puolipaivaraha value
getKokopaivaraha() number Return kokopaivaraha value
getAteriakorvaus() number Return ateriakorvaus value
getKilometrikorvaus() number Return kilometrikorvaus value

Taxation cost variables

name Example Description
osapaivaraha 18 Työmatka yli 6 tuntia.
puolipaivaraha 18 Alias to: osapaivaraha.
kokopaiväraha 40 Työmatka yli 10 tuntia.
ateriakorvaus 10 Voidaan maksaa työmatkoilta, joilta palkansaajalle ei makseta päivärahaa
kilometrikorvaus 0.44 Perussumma euroa/km
alv 24
alv.yleinen 24
alv.ruoka 14
alv.tarvike 10
alv.palvelu 10