Skip to content

Commit

Permalink
Merge pull request #86 from OLLIVAULT/patch-11
Browse files Browse the repository at this point in the history
Update ZugferdDocumentBuilder.php
  • Loading branch information
horstoeko authored Jun 11, 2024
2 parents 91547c8 + 56af827 commit a853ac9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ZugferdDocumentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,10 @@ public function initDocumentSummation(): ZugferdDocumentBuilder
* is calculated by tax amounts
*
* @param string $foreignCurrencyCode __BT-6, From BASIC WL__ Foreign currency code
* @param float $foreignTaxAmount __BT-, From __ Tax total amount in the foreign currency
* @param float $foreignTaxAmount __BT-, From __ Required from EXTENDED Tax total amount in the foreign currency
* @return ZugferdDocumentBuilder
*/
public function setForeignCurrency(string $foreignCurrencyCode, float $foreignTaxAmount): ZugferdDocumentBuilder
public function setForeignCurrency(string $foreignCurrencyCode, ?float $foreignTaxAmount): ZugferdDocumentBuilder
{
$invoiceCurrencyCode = $this->getObjectHelper()->tryCallByPathAndReturn($this->headerTradeSettlement, "getInvoiceCurrencyCode.value");

Expand Down Expand Up @@ -2475,7 +2475,7 @@ public function setDocumentBillingPeriod(?DateTime $startdate, ?DateTime $endDat
* @param string|null $reason __BT-97/BT-104, From BASIC WL__ The reason given in text form for the surcharge or discount at document level
* @return ZugferdDocumentBuilder
*/
public function addDocumentAllowanceCharge(float $actualAmount, bool $isCharge, string $taxCategoryCode = 'VAT', string $taxTypeCode, float $rateApplicablePercent, ?float $sequence = null, ?float $calculationPercent = null, ?float $basisAmount = null, ?float $basisQuantity = null, ?string $basisQuantityUnitCode = null, ?string $reasonCode = null, ?string $reason = null): ZugferdDocumentBuilder
public function addDocumentAllowanceCharge(float $actualAmount, bool $isCharge, string $taxCategoryCode = 'VAT', string $taxTypeCode, ?float $rateApplicablePercent, ?float $sequence = null, ?float $calculationPercent = null, ?float $basisAmount = null, ?float $basisQuantity = null, ?string $basisQuantityUnitCode = null, ?string $reasonCode = null, ?string $reason = null): ZugferdDocumentBuilder
{
$allowanceCharge = $this->getObjectHelper()->getTradeAllowanceChargeType($actualAmount, $isCharge, $taxTypeCode, $taxCategoryCode, $rateApplicablePercent, $sequence, $calculationPercent, $basisAmount, $basisQuantity, $basisQuantityUnitCode, $reasonCode, $reason);
$this->getObjectHelper()->tryCall($this->headerTradeSettlement, "addToSpecifiedTradeAllowanceCharge", $allowanceCharge);
Expand Down Expand Up @@ -2578,7 +2578,7 @@ public function addDiscountTermsToPaymentTerms(?float $calculationPercent = null
* @param string|null $typeCode __BT-, From __
* @return ZugferdDocumentBuilder
*/
public function addDocumentReceivableSpecifiedTradeAccountingAccount(string $id, ?string $typeCode): ZugferdDocumentBuilder
public function addDocumentReceivableSpecifiedTradeAccountingAccount(?string $id, ?string $typeCode): ZugferdDocumentBuilder
{
$account = $this->getObjectHelper()->getTradeAccountingAccountType($id, $typeCode);
$this->getObjectHelper()->tryCall($this->headerTradeSettlement, "addToReceivableSpecifiedTradeAccountingAccount", $account);
Expand Down

0 comments on commit a853ac9

Please sign in to comment.