Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST-FEATURE] Detailed Input Value References in DocumentBuilder #74

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 9 additions & 32 deletions src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,33 +172,13 @@ public function writeFile(string $xmlfilename): ZugferdDocument
/**
* Set main information about this document
*
* @param string $documentno
* The document no issued by the seller
* @param string $documenttypecode
* The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details
* @param DateTime $documentdate Date of invoice
* The date when
* the document
* was issued by
* the seller

* @param string $invoiceCurrency Code for the invoice currency
* The code for the invoice
* currency

* @param string|null $documentname Document Type
* The document
* type (free
* text)

* @param string|null $documentlanguage Language indicator
* The language code
* in which the
* document was
* written

* @param DateTime|null $effectiveSpecifiedPeriod
* The contractual due date of the invoice
* @param string $documentno __BT1, From MINIMUM__ The document no issued by the seller
* @param string $documenttypecode __BT3, From MINIMUM__ The type of the document, See \horstoeko\codelists\ZugferdInvoiceType for details
* @param DateTime $documentdate __BT2, From MINIMUM__ Date of invoice. The date when the document was issued by the seller
* @param string $invoiceCurrency __BT5, From MINIMUM__ Code for the invoice currency. The code for the invoice currency
* @param string|null $documentname Document Type. The documenttype (free text)
* @param string|null $documentlanguage Language indicator. The language code in which the document was written
* @param DateTime|null $effectiveSpecifiedPeriod The contractual due date of the invoice
* @return ZugferdDocumentBuilder
*/
public function setDocumentInformation(string $documentno, string $documenttypecode, DateTime $documentdate, string $invoiceCurrency, ?string $documentname = null, ?string $documentlanguage = null, ?DateTime $effectiveSpecifiedPeriod = null): ZugferdDocumentBuilder
Expand All @@ -218,11 +198,8 @@ public function setDocumentInformation(string $documentno, string $documenttypec
/**
* Set grouping of business process information
*
* @param string $id
* Identifies the context of a business process where the transaction is taking place, thus allowing the buyer to
* process the invoice in an appropriate manner.
* __Note__: These data make it possible to define the purpose of the settlement (invoice of the authorised person,
* contractual partner, subcontractor, settlement document for a building contract etc.).
* @param string $id __BT23, From MINIMUM__ Identifies the context of a business process where the transaction is taking place, thus allowing the buyer to process the invoice in an appropriate manner.
* __Note__: These data make it possible to define the purpose of the settlement (invoice of the authorised person, contractual partner, subcontractor, settlement document for a building contract etc.).
* @return ZugferdDocumentBuilder
*/
public function setDocumentBusinessProcess(string $id): ZugferdDocumentBuilder
Expand Down
Loading