Commit 8f664709 authored by ts.ag's avatar ts.ag Committed by Jonathan Sacksick
Browse files

[#3545964] feat: Update the VAT rates for Romania

By: ts.ag
By: jsacksick
parent 0fc9d0f6
Loading
Loading
Loading
Loading
Loading
+5 −3
Changes for modules/tax/src/Plugin/Commerce/TaxType/EuropeanUnionVat.php: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -1098,7 +1098,8 @@ class EuropeanUnionVat extends LocalTaxTypeBase {
          'label' => $labels['standard'],
          'percentages' => [
            ['number' => '0.20', 'start_date' => '2016-01-01', 'end_date' => '2016-12-31'],
            ['number' => '0.19', 'start_date' => '2017-01-01'],
            ['number' => '0.19', 'start_date' => '2017-01-01', 'end_date' => '2025-07-31'],
            ['number' => '0.21', 'start_date' => '2025-08-01'],
          ],
          'default' => TRUE,
        ],
@@ -1106,14 +1107,15 @@ class EuropeanUnionVat extends LocalTaxTypeBase {
          'id' => 'intermediate',
          'label' => $labels['intermediate'],
          'percentages' => [
            ['number' => '0.09', 'start_date' => '2008-12-01'],
            ['number' => '0.09', 'start_date' => '2008-12-01', 'end_date' => '2025-07-31'],
          ],
        ],
        [
          'id' => 'reduced',
          'label' => $labels['reduced'],
          'percentages' => [
            ['number' => '0.05', 'start_date' => '2008-12-01'],
            ['number' => '0.05', 'start_date' => '2008-12-01', 'end_date' => '2025-07-31'],
            ['number' => '0.11', 'start_date' => '2025-08-01'],
          ],
        ],
      ],
+5 −0
Changes for modules/tax/src/Plugin/Commerce/TaxType/LocalTaxTypeBase.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -157,6 +157,11 @@ abstract class LocalTaxTypeBase extends TaxTypeBase implements LocalTaxTypeInter
      foreach ($rates as $zone_id => $rate) {
        $zone = $zones[$zone_id];
        $percentage = $rate->getPercentage($calculation_date);
        // @todo figure out what to do when this happens as this potentially
        // means no tax rate applied likely due to misconfiguration.
        if (!$percentage) {
          continue;
        }
        // Stores are allowed to enter prices without tax even if they're
        // going to be displayed with tax, and vice-versa.
        // Now that the rates are known, use them to determine the final