XRechnungTemplate
in package
FinalYes
XRechnungTemplate class provides functionalities to handle XRechnung template files.
If a custom template file exists, its content is retrieved. Otherwise, a default template content is provided.
Table of Contents
Methods
- defaultContent() : string
- Generates the default XML content for a CrossIndustryInvoice document.
- getAllowanceChargeTemplate() : string
- getBuyerPartyTemplate() : string
- getCautionDepositEntityTemplate() : string
- getCautionDepositLineTemplate() : string
- getCreditLineTemplate() : string
- getInvoiceLineTemplate() : string
- getSupplierPartyTemplate() : string
- getTemplate() : string
- Returns the content of the XRechnung template file.
Methods
defaultContent()
Generates the default XML content for a CrossIndustryInvoice document.
public
static defaultContent() : string
Return values
string —The default XML content as a string.
getAllowanceChargeTemplate()
public
static getAllowanceChargeTemplate() : string
Return values
stringgetBuyerPartyTemplate()
public
static getBuyerPartyTemplate() : string
Return values
stringgetCautionDepositEntityTemplate()
public
static getCautionDepositEntityTemplate() : string
Return values
stringgetCautionDepositLineTemplate()
public
static getCautionDepositLineTemplate() : string
Return values
stringgetCreditLineTemplate()
public
static getCreditLineTemplate() : string
Return values
stringgetInvoiceLineTemplate()
public
static getInvoiceLineTemplate() : string
Return values
stringgetSupplierPartyTemplate()
public
static getSupplierPartyTemplate() : string
Return values
stringgetTemplate()
Returns the content of the XRechnung template file.
public
static getTemplate([string|null $type = 'invoice' ]) : string
Parameters
- $type : string|null = 'invoice'
-
The type of the template file. Default is 'invoice'.
Return values
string —The content of the template file as a string.