Quittio 0.3 API

CountryDefaultVat
in package

Read onlyYes
FinalYes

Default VAT of lines without VAT treatment, for InvoiceBuilder::useDefaultVat():

  • invoices of small businesses (Meta::FLAG_SMALL_BUSINESS): the small business preset of the seller's country pack (CountryDefaults::$smallBusinessVatPreset, Germany: de.small_business), otherwise $preset;
  • all other invoices: $preset, otherwise the preset of the seller's country pack (CountryDefaults::$vatPreset, Germany: de.standard).

InvoiceBuilder::useDefaultVat(new CountryDefaultVat($quittio->countries()));

Table of Contents

Methods

__construct()  : mixed
__invoke()  : TaxPreset|null

Methods

__invoke()

public __invoke(string|null $sellerCountry, bool $smallBusiness) : TaxPreset|null
Parameters
$sellerCountry : string|null
$smallBusiness : bool
Return values
TaxPreset|null
On this page

Search results