BuildsNotesAndAttachments
Invoice notes (BG-1) and supporting documents (BG-24).
Part of InvoiceBuilder, which holds the state; use the builder, not the trait.
Table of Contents
Methods
- attachment() : static
- Supporting document (BG-24), either embedded ($content) or as external link.
- note() : static
- Adds an invoice note (BG-1): the text (BT-22) and an optional subject code (BT-21, UNTDID 4451, e.g. "REG" for regulatory information). Unknown codes are kept as RawCode.
Methods
attachment()
Supporting document (BG-24), either embedded ($content) or as external link.
public
attachment(string $id[, string|null $content = null ][, MimeType|string|null $mimeType = null ][, string|null $filename = null ][, string|null $description = null ][, string|null $externalUri = null ]) : static
Parameters
- $id : string
- $content : string|null = null
- $mimeType : MimeType|string|null = null
- $filename : string|null = null
- $description : string|null = null
- $externalUri : string|null = null
Return values
staticnote()
Adds an invoice note (BG-1): the text (BT-22) and an optional subject code (BT-21, UNTDID 4451, e.g. "REG" for regulatory information). Unknown codes are kept as RawCode.
public
note(string $content[, NoteSubjectCode|RawCode|string|null $subject = null ]) : static
Parameters
- $content : string
- $subject : NoteSubjectCode|RawCode|string|null = null