1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/DataMapper/Tax/TaxModel.php

512 lines
24 KiB
PHP
Raw Normal View History

2023-03-29 04:13:50 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\DataMapper\Tax;
class TaxModel
{
2023-04-12 06:08:56 +02:00
2023-04-22 09:07:22 +02:00
/** @var string $seller_subregion */
2023-03-29 04:13:50 +02:00
public string $seller_subregion = 'CA';
2023-04-12 06:08:56 +02:00
2023-04-22 09:07:22 +02:00
/** @var string $version */
2023-04-10 13:04:16 +02:00
public string $version = 'alpha';
2023-04-12 06:08:56 +02:00
2023-04-22 09:07:22 +02:00
/** @var object $regions */
2023-03-29 04:13:50 +02:00
public object $regions;
2023-04-12 06:08:56 +02:00
/**
* __construct
*
2023-04-22 09:07:22 +02:00
* @param TaxModel $model
2023-04-12 06:08:56 +02:00
* @return void
*/
2023-03-29 04:13:50 +02:00
public function __construct(public ?TaxModel $model = null)
{
if(!$this->model)
$this->regions = $this->init();
else
$this->regions = $model;
}
2023-04-12 06:08:56 +02:00
/**
* Initializes the rules and builds any required data.
*
2023-04-22 09:07:22 +02:00
* @return object
2023-04-12 06:08:56 +02:00
*/
2023-04-22 09:07:22 +02:00
public function init(): object
2023-03-29 04:13:50 +02:00
{
$this->regions = new \stdClass();
$this->regions->US = new \stdClass();
$this->regions->EU = new \stdClass();
$this->usRegion()
2023-04-10 13:04:16 +02:00
->euRegion()
->auRegion();
2023-03-29 04:13:50 +02:00
return $this->regions;
}
2023-04-12 06:08:56 +02:00
/**
* Builds the model for Australian Taxes
*
* @return self
*/
2023-04-10 13:04:16 +02:00
private function auRegion(): self
{
$this->regions->AU = new \stdClass();
$this->regions->AU->has_sales_above_threshold = false;
$this->regions->AU->tax_all_subregions = false;
2023-04-18 09:17:07 +02:00
$this->regions->AU->tax_threshold = 75000;
2023-04-10 13:04:16 +02:00
$this->auSubRegions();
return $this;
}
2023-04-12 06:08:56 +02:00
/**
* Builds the model for Australian Subregions
*
* @return self
*/
2023-04-10 13:04:16 +02:00
private function auSubRegions(): self
{
$this->regions->AU->subregions = new \stdClass();
$this->regions->AU->subregions->AU = new \stdClass();
$this->regions->AU->subregions->AU->apply_tax = false;
$this->regions->AU->subregions->AU->tax_rate = 10;
2023-04-10 13:11:55 +02:00
$this->regions->AU->subregions->AU->tax_name = 'GST';
2023-04-10 13:04:16 +02:00
return $this;
}
2023-04-12 06:08:56 +02:00
/**
* Builds the model for US Taxes
*
* @return self
*/
2023-03-29 04:13:50 +02:00
private function usRegion(): self
{
$this->regions->US->has_sales_above_threshold = false;
2023-04-03 15:40:57 +02:00
$this->regions->US->tax_all_subregions = false;
2023-03-29 04:13:50 +02:00
$this->usSubRegions();
return $this;
}
2023-04-12 06:08:56 +02:00
/**
* Builds the model for EU Taxes
*
* @return self
*/
2023-03-29 04:13:50 +02:00
private function euRegion(): self
{
$this->regions->EU->has_sales_above_threshold = false;
$this->regions->EU->tax_all_subregions = false;
2023-04-18 09:17:07 +02:00
$this->regions->EU->tax_threshold = 10000;
2023-03-29 04:13:50 +02:00
$this->euSubRegions();
return $this;
}
2023-04-12 06:08:56 +02:00
/**
* Builds the model for US States
*
* @return self
*/
2023-03-29 04:13:50 +02:00
private function usSubRegions(): self
{
$this->regions->US->subregions = new \stdClass();
$this->regions->US->subregions->AL = new \stdClass();
$this->regions->US->subregions->AL->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->AL->tax_rate = 4;
$this->regions->US->subregions->AL->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->AK = new \stdClass();
$this->regions->US->subregions->AK->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->AK->tax_rate = 0;
$this->regions->US->subregions->AK->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->AZ = new \stdClass();
$this->regions->US->subregions->AZ->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->AZ->tax_rate = 5.6;
$this->regions->US->subregions->AZ->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->AR = new \stdClass();
$this->regions->US->subregions->AR->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->AR->tax_rate = 6.5;
$this->regions->US->subregions->AR->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->CA = new \stdClass();
$this->regions->US->subregions->CA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->CA->tax_rate = 7.25;
$this->regions->US->subregions->CA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->CO = new \stdClass();
$this->regions->US->subregions->CO->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->CO->tax_rate = 2.9;
$this->regions->US->subregions->CO->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->CT = new \stdClass();
$this->regions->US->subregions->CT->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->CT->tax_rate = 6.35;
$this->regions->US->subregions->CT->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->DE = new \stdClass();
$this->regions->US->subregions->DE->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->DE->tax_rate = 0;
$this->regions->US->subregions->DE->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->FL = new \stdClass();
$this->regions->US->subregions->FL->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->FL->tax_rate = 6;
$this->regions->US->subregions->FL->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->GA = new \stdClass();
$this->regions->US->subregions->GA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->GA->tax_rate = 4;
$this->regions->US->subregions->GA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->HI = new \stdClass();
$this->regions->US->subregions->HI->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->HI->tax_rate = 4;
$this->regions->US->subregions->HI->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->ID = new \stdClass();
$this->regions->US->subregions->ID->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->ID->tax_rate = 6;
$this->regions->US->subregions->ID->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->IL = new \stdClass();
$this->regions->US->subregions->IL->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->IL->tax_rate = 6.25;
$this->regions->US->subregions->IL->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->IN = new \stdClass();
$this->regions->US->subregions->IN->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->IN->tax_rate = 7;
$this->regions->US->subregions->IN->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->IA = new \stdClass();
$this->regions->US->subregions->IA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->IA->tax_rate = 6;
$this->regions->US->subregions->IA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->KS = new \stdClass();
$this->regions->US->subregions->KS->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->KS->tax_rate = 6.5;
$this->regions->US->subregions->KS->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->KY = new \stdClass();
$this->regions->US->subregions->KY->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->KY->tax_rate = 6;
$this->regions->US->subregions->KY->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->LA = new \stdClass();
$this->regions->US->subregions->LA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->LA->tax_rate = 4.45;
$this->regions->US->subregions->LA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->ME = new \stdClass();
$this->regions->US->subregions->ME->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->ME->tax_rate = 5.5;
$this->regions->US->subregions->ME->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MD = new \stdClass();
$this->regions->US->subregions->MD->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MD->tax_rate = 6;
$this->regions->US->subregions->MD->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MA = new \stdClass();
$this->regions->US->subregions->MA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MA->tax_rate = 6.25;
$this->regions->US->subregions->MA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MI = new \stdClass();
$this->regions->US->subregions->MI->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MI->tax_rate = 6;
$this->regions->US->subregions->MI->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MN = new \stdClass();
$this->regions->US->subregions->MN->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MN->tax_rate = 6.875;
$this->regions->US->subregions->MN->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MS = new \stdClass();
$this->regions->US->subregions->MS->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MS->tax_rate = 7;
$this->regions->US->subregions->MS->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MO = new \stdClass();
$this->regions->US->subregions->MO->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MO->tax_rate = 4.225;
$this->regions->US->subregions->MO->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->MT = new \stdClass();
$this->regions->US->subregions->MT->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->MT->tax_rate = 0;
$this->regions->US->subregions->MT->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NE = new \stdClass();
$this->regions->US->subregions->NE->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NE->tax_rate = 5.5;
$this->regions->US->subregions->NE->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NV = new \stdClass();
$this->regions->US->subregions->NV->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NV->tax_rate = 6.85;
$this->regions->US->subregions->NV->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NH = new \stdClass();
$this->regions->US->subregions->NH->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NH->tax_rate = 0;
$this->regions->US->subregions->NH->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NJ = new \stdClass();
$this->regions->US->subregions->NJ->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NJ->tax_rate = 6.625;
$this->regions->US->subregions->NJ->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NM = new \stdClass();
$this->regions->US->subregions->NM->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NM->tax_rate = 5.125;
$this->regions->US->subregions->NM->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NY = new \stdClass();
$this->regions->US->subregions->NY->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NY->tax_rate = 4;
$this->regions->US->subregions->NY->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->NC = new \stdClass();
$this->regions->US->subregions->NC->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->NC->tax_rate = 4.75;
$this->regions->US->subregions->NC->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->ND = new \stdClass();
$this->regions->US->subregions->ND->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->ND->tax_rate = 5;
$this->regions->US->subregions->ND->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->OH = new \stdClass();
$this->regions->US->subregions->OH->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->OH->tax_rate = 5.75;
$this->regions->US->subregions->OH->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->OK = new \stdClass();
$this->regions->US->subregions->OK->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->OK->tax_rate = 4.5;
$this->regions->US->subregions->OK->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->OR = new \stdClass();
$this->regions->US->subregions->OR->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->OR->tax_rate = 0;
$this->regions->US->subregions->OR->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->PA = new \stdClass();
$this->regions->US->subregions->PA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->PA->tax_rate = 6;
$this->regions->US->subregions->PA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->RI = new \stdClass();
$this->regions->US->subregions->RI->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->RI->tax_rate = 7;
$this->regions->US->subregions->RI->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->SC = new \stdClass();
$this->regions->US->subregions->SC->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->SC->tax_rate = 6;
$this->regions->US->subregions->SC->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->SD = new \stdClass();
$this->regions->US->subregions->SD->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->SD->tax_rate = 4.5;
$this->regions->US->subregions->SD->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->TN = new \stdClass();
$this->regions->US->subregions->TN->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->TN->tax_rate = 7;
$this->regions->US->subregions->TN->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->TX = new \stdClass();
$this->regions->US->subregions->TX->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->TX->tax_rate = 6.25;
$this->regions->US->subregions->TX->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->UT = new \stdClass();
$this->regions->US->subregions->UT->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->UT->tax_rate = 5.95;
$this->regions->US->subregions->UT->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->VT = new \stdClass();
$this->regions->US->subregions->VT->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->VT->tax_rate = 6;
$this->regions->US->subregions->VT->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->VA = new \stdClass();
$this->regions->US->subregions->VA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->VA->tax_rate = 5.3;
$this->regions->US->subregions->VA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->WA = new \stdClass();
$this->regions->US->subregions->WA->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->WA->tax_rate = 6.5;
$this->regions->US->subregions->WA->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->WV = new \stdClass();
$this->regions->US->subregions->WV->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->WV->tax_rate = 6;
$this->regions->US->subregions->WV->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->WI = new \stdClass();
$this->regions->US->subregions->WI->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->WI->tax_rate = 5;
$this->regions->US->subregions->WI->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
$this->regions->US->subregions->WY = new \stdClass();
$this->regions->US->subregions->WY->apply_tax = false;
2023-04-12 02:33:02 +02:00
$this->regions->US->subregions->WY->tax_rate = 4;
$this->regions->US->subregions->WY->tax_name = 'Sales Tax';
2023-03-29 04:13:50 +02:00
return $this;
}
2023-04-12 06:08:56 +02:00
/**
* Create the EU member countries
*
* @return self
*/
2023-03-29 04:13:50 +02:00
private function euSubRegions(): self
{
$this->regions->EU->subregions = new \stdClass();
$this->regions->EU->subregions->AT = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->AT->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->AT->tax_name = 'USt';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->AT->reduced_tax_rate = 11;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->AT->apply_tax = false;
$this->regions->EU->subregions->BE = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->BE->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->BE->tax_name = 'BTW';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->BE->reduced_tax_rate = 6;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->BE->apply_tax = false;
$this->regions->EU->subregions->BG = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->BG->tax_rate = 20;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->BG->tax_name = 'НДС';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->BG->reduced_tax_rate = 9;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->BG->apply_tax = false;
$this->regions->EU->subregions->CY = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->CY->tax_rate = 19;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->CY->tax_name = 'ΦΠΑ';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->CY->reduced_tax_rate = 9;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->CY->apply_tax = false;
$this->regions->EU->subregions->CZ = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->CZ->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->CZ->tax_name = 'DPH';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->CZ->reduced_tax_rate = 15;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->CZ->apply_tax = false;
$this->regions->EU->subregions->DE = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->DE->tax_rate = 19;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->DE->tax_name = 'MwSt';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->DE->reduced_tax_rate = 7;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->DE->apply_tax = false;
$this->regions->EU->subregions->DK = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->DK->tax_rate = 25;
2023-04-20 05:12:45 +02:00
$this->regions->EU->subregions->DK->tax_name = 'Moms';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->DK->reduced_tax_rate = 0;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->DK->apply_tax = false;
$this->regions->EU->subregions->EE = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->EE->tax_rate = 20;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->EE->tax_name = 'KM';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->EE->reduced_tax_rate = 9;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->EE->apply_tax = false;
$this->regions->EU->subregions->ES = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->ES->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->ES->tax_name = 'IVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->ES->reduced_tax_rate = 10;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->ES->apply_tax = false;
$this->regions->EU->subregions->FI = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->FI->tax_rate = 24;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->FI->tax_name = 'ALV';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->FI->reduced_tax_rate = 14;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->FI->apply_tax = false;
$this->regions->EU->subregions->FR = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->FR->tax_rate = 20;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->FR->tax_name = 'TVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->FR->reduced_tax_rate = 5.5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->FR->apply_tax = false;
2023-03-29 14:39:50 +02:00
// $this->regions->EU->subregions->GB = new \stdClass();
2023-04-10 13:04:16 +02:00
// $this->regions->EU->subregions->GB->tax_rate = 20;
// $this->regions->EU->subregions->GB->reduced_tax_rate = 0;
2023-03-29 14:39:50 +02:00
// $this->regions->EU->subregions->GB->apply_tax = false;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->GR = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->GR->tax_rate = 24;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->GR->tax_name = 'ΦΠΑ';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->GR->reduced_tax_rate = 13;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->GR->apply_tax = false;
$this->regions->EU->subregions->HR = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->HR->tax_rate = 25;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->HR->tax_name = 'PDV';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->HR->reduced_tax_rate = 5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->HR->apply_tax = false;
$this->regions->EU->subregions->HU = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->HU->tax_rate = 27;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->HU->tax_name = 'ÁFA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->HU->reduced_tax_rate = 5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->HU->apply_tax = false;
$this->regions->EU->subregions->IE = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->IE->tax_rate = 23;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->IE->tax_name = 'VAT';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->IE->reduced_tax_rate = 0;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->IE->apply_tax = false;
$this->regions->EU->subregions->IT = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->IT->tax_rate = 22;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->IT->tax_name = 'IVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->IT->reduced_tax_rate = 10;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->IT->apply_tax = false;
$this->regions->EU->subregions->LT = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LT->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->LT->tax_name = 'PVM';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LT->reduced_tax_rate = 9;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->LT->apply_tax = false;
$this->regions->EU->subregions->LU = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LU->tax_rate = 17;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->LU->tax_name = 'TVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LU->reduced_tax_rate = 3;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->LU->apply_tax = false;
$this->regions->EU->subregions->LV = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LV->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->LV->tax_name = 'PVN';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->LV->reduced_tax_rate = 12;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->LV->apply_tax = false;
$this->regions->EU->subregions->MT = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->MT->tax_rate = 18;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->MT->tax_name = 'VAT';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->MT->reduced_tax_rate = 5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->MT->apply_tax = false;
$this->regions->EU->subregions->NL = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->NL->tax_rate = 21;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->NL->tax_name = 'BTW';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->NL->reduced_tax_rate = 9;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->NL->apply_tax = false;
$this->regions->EU->subregions->PT = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->PT->tax_rate = 23;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->PT->tax_name = 'IVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->PT->reduced_tax_rate = 6;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->PT->apply_tax = false;
$this->regions->EU->subregions->RO = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->RO->tax_rate = 19;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->RO->tax_name = 'TVA';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->RO->reduced_tax_rate = 5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->RO->apply_tax = false;
$this->regions->EU->subregions->SE = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SE->tax_rate = 25;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->SE->tax_name = 'Moms';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SE->reduced_tax_rate = 12;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->SE->apply_tax = false;
$this->regions->EU->subregions->SI = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SI->tax_rate = 22;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->SI->tax_name = 'DDV';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SI->reduced_tax_rate = 9.5;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->SI->apply_tax = false;
$this->regions->EU->subregions->SK = new \stdClass();
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SK->tax_rate = 20;
2023-04-12 02:21:02 +02:00
$this->regions->EU->subregions->SK->tax_name = 'DPH';
2023-04-10 13:04:16 +02:00
$this->regions->EU->subregions->SK->reduced_tax_rate = 10;
2023-03-29 04:13:50 +02:00
$this->regions->EU->subregions->SK->apply_tax = false;
return $this;
}
}