NAME

Finance::Tax::Aruba::Role::BBO::TaxYear - A role that implements BBO (turnover tax) logic

VERSION

version 0.015

DESCRIPTION

Shared BBO (turnover tax) calculation logic, composed into a per-tax-year class the same way Finance::Tax::Aruba::Role::Income::TaxYear is -- see Finance::Tax::Aruba::BBO for the year-dispatching factory.

REQUIRED METHODS

is_year

Year selector method, same contract as "is_year" in Finance::Tax::Aruba::Role::Income::TaxYear.

ATTRIBUTES

rate

The total rate, as a decimal: bazv_rate plus bbo_rate, so 7%.

bazv_rate

The BAZV part of the rate, 3%.

bbo_rate

The BBO part of the rate, 4%.

bbo_at_border

Whether import BBO is creditable against domestic BBO owed for this tax year. Defaults to false; a year class overrides this once it's known which years this applies to.

METHODS

domestic_tax($amount)

domestic_tax_bazv($amount)

domestic_tax_bbo($amount)

The BAZV and BBO parts of domestic_tax. They always add up to it.

domestic_net($amount)

import_tax($amount)

An estimate of the BBO Customs will invoice. The actual customs invoice is what is offset.

export_tax($amount)

net_payable(domestic => $domestic, customs => \@invoices)

Each customs invoice is { amount => 70, held => 1 }. Only held invoices offset the domestic BBO owed. An invoice the seller paid without forwarding it to you has held => 0 and cannot be offset.

customs_offset(\@invoices)

The sum of the held customs invoices.

customs_not_forwarded(\@invoices)

The sum of the invoices not forwarded to you, which cannot be offset.

See Finance::Tax::Aruba::BBO for the full description of each.

SEE ALSO

Finance::Tax::Aruba::BBO, Finance::Tax::Aruba::Role::Income::TaxYear

AUTHOR

Wesley Schwengle <waterkip@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Wesley Schwengle.

This is free software, licensed under:

The (three-clause) BSD License