Skip to content

API reference / Quittio \ Core \ Enums

AllowanceReasonCode

string-backed enum in quittio/core · uses HasLabel

Quittio\Core\Enums\AllowanceReasonCode · Source

Allowance reason code (BT-98, BT-140), UNTDID 5189 subset.

Cases#

CaseValueDescription
BonusForWorksAheadOfSchedule'41'
OtherBonus'42'
ManufacturersConsumerDiscount'60'
DueToMilitaryStatus'62'
DueToWorkAccident'63'
SpecialAgreement'64'
ProductionErrorDiscount'65'
NewOutletDiscount'66'
SampleDiscount'67'
EndOfRangeDiscount'68'
IncotermDiscount'70'
PointOfSalesThresholdAllowance'71'
MaterialSurchargeDeduction'88'
Discount'95'
SpecialRebate'100'
FixedLongTerm'102'
Temporary'103'
Standard'104'
YearlyTurnover'105'

Methods#

MethodDescription
::isValidCode()Whether a raw code value is valid according to the official code list.
->label()
::labelGroup()

isValidCode()#

public static function isValidCode(string $code): bool

static

Whether a raw code value is valid according to the official code list.

ParameterTypeDescription
$codestring
Returns
bool

label()#

public function label(?string $locale = null): string
ParameterTypeDescription
$locale?string = null
Returns
string

labelGroup()#

public static function labelGroup(): string

static

Returns
string

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