Taxation
Taxation related helpers
Taxation related helpers
Get default VAT
$vatNormal = $this->get('taxation', 'alv');
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);
You can set a specifig date before getting the cost:
$costPerKm = $this->get('taxation')->setDate($date)->getCost('kilometrikorvaus');
| 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 |
| 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 |