Skip to content

API reference

Quittio\Country\CH

quittio/country-ch#

Quittio\Country\CH

Quittio\Country\CH\QrBill

  • CreditorReferenceThe Creditor Reference of ISO 11649: "RF", two check digits (modulo 97-10) and up to 21 letters and digits. It goes with an ordinary IBAN in the Swiss QR bill.
  • QrReferenceThe QR reference of the Swiss QR bill: 27 digits, the last a check digit after modulo 10 recursive (Swiss Implementation Guidelines QR-bill, annex B). It goes with a QR-IBAN only.
  • SwissCrossThe Swiss cross printed in the middle of the Swiss QR Code (7 × 7 mm, guidelines 6.4.2): a black square with a white border and the white cross, as PNG (PDF/A allows no SVG of mPDF).
  • SwissQrBillGeneratorThe Swiss QR bill: the Swiss QR Code (Swiss Payments Code "SPC", version 0200) and its payment part with receipt, after the Swiss Implementation Guidelines QR-bill 2.3 of SIX.

Quittio\Country\CH\Rounding

  • CashRoundingRounding of the amount due to 5 Rappen, as usual in Switzerland: the difference is the rounding amount (BT-114), never a change of the VAT or the line amounts.

Quittio\Country\CH\Rules

  • MwstgRulesElements of an invoice according to the Swiss VAT act (Art. 26 (2) MWSTG), with the till receipt of Art. 57 MWSTV up to CHF 400 that needs no recipient.

Quittio\Country\CH\Tax

  • CustomVatPresetAd-hoc preset of the Swiss pack, e.g. from VatPreset::exempt(). Like the VatPreset cases, its text defaults to German when the invoice has no locale; other locales without a text fall back to English.
  • TaxTablesSwiss VAT rates (Art. 25 MWSTG), each valid from its date on.
  • VatPreset enumTax presets for Switzerland (MWSTG).

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.