struct
Zugpferd::ExchangedDocument
- Zugpferd::ExchangedDocument
- Struct
- Value
- Object
Overview
Invoice header metadata: number, date, document type, notes, and buyer reference.
Corresponds to the ExchangedDocument section of the CII XML.
Defined in:
zugpferd/exchanged_document.crConstant Summary
-
CORRECTION_TYPE_CODE =
"384" -
CREDIT_NOTE_TYPE_CODE =
"381" -
INVOICE_TYPE_CODE =
"380" -
UNTDID 1001 document type codes. Use as
type_code:in the constructor.
Constructors
Instance Method Summary
-
#buyer_reference : String | Nil
Buyer's routing reference (BT-10).
-
#buyer_reference=(buyer_reference : String | Nil)
Buyer's routing reference (BT-10).
-
#id : String
Invoice number assigned by the seller (BT-1).
-
#id=(id : String)
Invoice number assigned by the seller (BT-1).
-
#issue_date : Time
Invoice issue date (BT-2).
-
#issue_date=(issue_date : Time)
Invoice issue date (BT-2).
-
#notes : Array(String)
Free-text notes attached to the invoice (BT-22).
-
#notes=(notes : Array(String))
Free-text notes attached to the invoice (BT-22).
-
#type_code : String
Document type code (BT-3).
-
#type_code=(type_code : String)
Document type code (BT-3).
Constructor Detail
Instance Method Detail
Buyer's routing reference (BT-10). Required for XRECHNUNG (Leitweg-ID); also used as remittance advice reference in some buyer systems.
Buyer's routing reference (BT-10). Required for XRECHNUNG (Leitweg-ID); also used as remittance advice reference in some buyer systems.
Invoice number assigned by the seller (BT-1). Must be unique within the seller's system.
Invoice number assigned by the seller (BT-1). Must be unique within the seller's system.
Invoice issue date (BT-2). Formatted as YYYYMMDD with format code 102 in the XML.
Invoice issue date (BT-2). Formatted as YYYYMMDD with format code 102 in the XML.
Free-text notes attached to the invoice (BT-22). Multiple notes are supported.
Free-text notes attached to the invoice (BT-22). Multiple notes are supported.
Document type code (BT-3). UNTDID 1001 value; use the constants above or a raw string.
Document type code (BT-3). UNTDID 1001 value; use the constants above or a raw string.