Skip to content

Commit

Permalink
Added addDocumentSellerVATRegistrationNumber and addDocumentSellerTax…
Browse files Browse the repository at this point in the history
…Number to ZugferdDocumentBuilder
  • Loading branch information
HorstOeko committed Nov 29, 2024
1 parent 9d6d67a commit 02d0e4c
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit 02d0e4c

Please sign in to comment.