VAT

Value Added Taxes are levies imposed by governments on businesses operating within their jurisdictions. Most Jurisdictions define both an Output (Sales) VAT as well as an Input (Purchase) VAT.

Attributes

  • name: The name of the vat object.
  • code: A short identification string for the vat .
  • rate: An integer representing the rate of the vat as a percentage.
  • valid_from: The date from which the rate is valid.
  • valid_to: The date after which the rate ceases to be valid.
  • entity: The Entity associated with the vat object. Defaults to the the entity of the logged in user.
  • account: The Account associated with the vat object.

Methods

  • $vat->attributes(): Presents the vat object’s attributes as an object. Useful for debugging.
  • $vat->toString():The string representation of the Exchange Rate object instance.

Constraints

  • MissingVatAccount: A Vat object requires an Account.
  • InvalidAccountType: A Vat Account must be of type Account::CONTROL.