Skip to content

API reference / Quittio \ Laravel \ Contracts

InvoiceDefaults

interface in quittio/laravel

Quittio\Laravel\Contracts\InvoiceDefaults · Source

Sets the seller and its defaults (bank account, small business flag …) on the builders of Quittio::invoice() and of the document methods (Quittio::quote() …). The default binding takes them from config/quittio.php (ConfigInvoiceDefaults, Seller::apply()); quittio/managed binds the current issuer.

Methods#

MethodDescription
->apply()Sets the seller and its defaults on $builder. Called for every invoice builder of Quittio::invoice() and for the invoice builder of every document; ->seller() with another seller removes these values again.

apply()#

public function apply(InvoiceBuilder $builder): void

Sets the seller and its defaults on $builder. Called for every invoice builder of Quittio::invoice() and for the invoice builder of every document; ->seller() with another seller removes these values again.

ParameterTypeDescription
$builderInvoiceBuilder

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