NAME
Finance::Tax::Aruba::Role::BBO::TaxYear - A role that implements BBO (turnover tax) logic
VERSION
version 0.014
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 BBO rate for this tax year, as a decimal. Required -- every year class must set its own default.
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_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