DocumentReference
in package
uses
Immutable
Read onlyYes
FinalYes
Reference to a related document on line level or as additional reference (profile EXTENDED), e.g. delivery note, order, contract or receiving advice.
$typeCode uses UNTDID 1001 (e.g. 130 invoiced object, 916 additional document) where applicable.
Table of Contents
Constants
- TYPE_CONTRACT : string = 'contract'
- TYPE_DESPATCH_ADVICE : string = 'despatch_advice'
- TYPE_ORDER : string = 'order'
- TYPE_OTHER : string = 'other'
- TYPE_RECEIVING_ADVICE : string = 'receiving_advice'
Properties
- $description : string|null
- $id : string
- $issueDate : Date|null
- $kind : string
- $lineId : string|null
- $typeCode : RawCode|null
Methods
- __construct() : mixed
- with() : static
- Returns a copy with the given properties replaced.
Constants
TYPE_CONTRACT
public
string
TYPE_CONTRACT
= 'contract'
TYPE_DESPATCH_ADVICE
public
string
TYPE_DESPATCH_ADVICE
= 'despatch_advice'
TYPE_ORDER
public
string
TYPE_ORDER
= 'order'
TYPE_OTHER
public
string
TYPE_OTHER
= 'other'
TYPE_RECEIVING_ADVICE
public
string
TYPE_RECEIVING_ADVICE
= 'receiving_advice'
Properties
$description
public
string|null
$description
= null
$id
public
string
$id
$issueDate
public
Date|null
$issueDate
= null
$kind
public
string
$kind
= self::TYPE_OTHER
$lineId
public
string|null
$lineId
= null
$typeCode
public
RawCode|null
$typeCode
= null
Methods
__construct()
public
__construct(string $id[, string $kind = self::TYPE_OTHER ][, string|null $lineId = null ][, Date|null $issueDate = null ][, RawCode|null $typeCode = null ][, string|null $description = null ]) : mixed
Parameters
with()
Returns a copy with the given properties replaced.
public
with(array<string, mixed> $changes) : static
Parameters
- $changes : array<string, mixed>