Repository navigation
1.0.0
Quittio 1.0 removes what the 0.x releases deprecated and fixes the public API: from 1.0 on, only a major release breaks it. The upgrade guide lists every break with what to do.
Added
VatPreset::LEGACY_STANDARD_KEYandLEGACY_REDUCED_KEYname the preset keys of 0.2 (de.standard_19,de.reduced_7) that stored invoices may still carry.- Documentation: Upgrading to 1.0.
- Every public method of
quittio/core,quittio/laravelandquittio/country-dehas a doc comment, so the API reference is complete; a test requires one for every new public method.
Changed
VatPreset::fromKey()returnsStandardandReducedfor the keysde.standard_19andde.reduced_7;VatPreset::from()andtryFrom()no longer know them.DocumentBuilder::creditTransfer()names its first parameter$accountId, likeInvoiceBuilder::creditTransfer(); calls with the named argumentiban:change.- The application refuses to start with a
RuntimeExceptionwhile the configurationquittio-de(config/quittio-de.php) of 0.3 is set, instead of ignoring its settings silently. - The country packs for Austria, Switzerland, Belgium and France are not covered by the compatibility promise until a tax adviser of their country has reviewed them (Country packs without tax review).
Fixed
FormatRegistryandProfileRegistryfound no format or profile registered with upper-case letters in its key or as target of an alias, e.g.new OutputFormat('FatturaPA', …): keys are stored in lower case now, as the lookup already compared them.
Removed
Quittio::withSerializer(),withValidator(),withoutValidators(),withRenderer(),withTemplateEngine(),withPaymentQrGenerator()andwithFormatResolver(): useaddSerializer(),addValidator(),clearValidators(),setRenderer(),setTemplateEngine(),setPaymentQrGenerator()andsetFormatResolver().FormatRegistry::XRECHNUNG_CIIandXRECHNUNG_UBL(useXRechnungFormats::CIIandUBLof the German pack) andDefaultFormatResolver::EU_COUNTRIES(useVatTerritory::EU_MEMBER_STATES). The core no longer registers the formatsxrechnung-ciiandxrechnung-ubland the aliasxrechnung; the German pack does.VatPreset::Standard19,VatPreset::Reduced7andVatPreset::canonical(): useStandard,ReducedandVatPreset::fromKey().Flags::SMALL_AMOUNT_LIMIT(useTaxTables::smallAmountLimitOn()) andGermanInvoiceMacros::ADVANCE_TYPES(useGermanInvoice::ADVANCE_TYPES).- The builder macros
smallAmount(),propertyRelatedService(),newVehicle(),selfBilled(),deductAdvance()andconsumerDefaultNotice()directly on the builder: use->de()->…. - The environment variables of 0.1.0
QUITTIO_COUNTRY,QUITTIO_VALIDATION,QUITTIO_GUARD,QUITTIO_DISKandQUITTIO_PREVIEW: useQUITTIO_DEFAULT_COUNTRY,QUITTIO_VALIDATION_MODE,QUITTIO_MANDATORY_FIELD_GUARD,QUITTIO_STORAGE_DISKandQUITTIO_PREVIEW_ENABLED.