Skip to content

Commit

Permalink
[ENH] Added Shortcut methods addDocumentBuyerVATRegistrationNumber an…
Browse files Browse the repository at this point in the history
…d addDocumentBuyerTaxNumber
  • Loading branch information
HorstOeko committed Dec 18, 2024
1 parent 57617a0 commit e38c9ce
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,28 @@ public function addDocumentBuyerTaxRegistration(?string $taxRegType = null, ?str
return $this;
}

/**
* Add information about the buyers's VAT Registration Number (Umsatzsteueridentnummer)
*
* @param string|null $vatRegNo __BT-48, From MINIMUM/EN 16931__ VAT Registration Number (Umsatzsteueridentnummer)
* @return ZugferdDocumentBuilder
*/
public function addDocumentBuyerVATRegistrationNumber(?string $vatRegNo = null): ZugferdDocumentBuilder
{
return $this->addDocumentBuyerTaxRegistration(ZugferdReferenceCodeQualifiers::VAT_REGI_NUMB, $vatRegNo);
}

/**
* Add information about the buyer's Tax Number (Steuernummer)
*
* @param string|null $taxNo __BT-48, From MINIMUM/EN 16931__ Tax Number (Steuernummer)
* @return ZugferdDocumentBuilder
*/
public function addDocumentBuyerTaxNumber(?string $taxNo = null): ZugferdDocumentBuilder
{
return $this->addDocumentBuyerTaxRegistration(ZugferdReferenceCodeQualifiers::FISC_NUMB, $taxNo);
}

/**
* Sets detailed information on the business address of the buyer
*
Expand Down

0 comments on commit e38c9ce

Please sign in to comment.