diff --git a/src/ZugferdDocumentBuilder.php b/src/ZugferdDocumentBuilder.php index a9b21272..6d82f094 100644 --- a/src/ZugferdDocumentBuilder.php +++ b/src/ZugferdDocumentBuilder.php @@ -10,10 +10,11 @@ namespace horstoeko\zugferd; use DateTime; -use DOMDocument; use DOMXPath; +use DOMDocument; use horstoeko\zugferd\codelists\ZugferdPaymentMeans; +use horstoeko\zugferd\codelists\ZugferdReferenceCodeQualifiers; /** * Class representing the document builder for outgoing documents @@ -387,6 +388,28 @@ public function addDocumentSellerTaxRegistration(?string $taxregtype = null, ?st return $this; } + /** + * Add information about the seller's VAT Registration Number (Umsatzsteueridentnummer) + * + * @param string|null $vatRegNo __BT-31, From MINIMUM/EN 16931__ VAT Registration Number (Umsatzsteueridentnummer) + * @return ZugferdDocumentBuilder + */ + public function addDocumentSellerVATRegistrationNumber(?string $vatRegNo = null): ZugferdDocumentBuilder + { + return $this->addDocumentSellerTaxRegistration(ZugferdReferenceCodeQualifiers::VAT_REGI_NUMB, $vatRegNo); + } + + /** + * Add information about the seller's Tax Number (Steuernummer) + * + * @param string|null $taxNo __BT-32, From MINIMUM/EN 16931__ Tax Number (Steuernummer) + * @return ZugferdDocumentBuilder + */ + public function addDocumentSellerTaxNumber(?string $taxNo = null): ZugferdDocumentBuilder + { + return $this->addDocumentSellerTaxRegistration(ZugferdReferenceCodeQualifiers::FISC_NUMB, $taxNo); + } + /** * Sets detailed information on the business address of the seller *