Skip to content

Commit

Permalink
[FIX] Typo in variable Name
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Dec 6, 2024
1 parent d66ee79 commit 2a2ff79
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 @@ -2289,12 +2289,12 @@ public function addDiscountTermsToPaymentTerms(?float $calculationPercent = null
* @param string $description __BT-20, From _EN 16931 XRECHNUNG__ Text to add
* @param int[] $paymentDiscountDays __BT-20, BR-DE-18, From _EN 16931 XRECHNUNG__ Array of Payment discount days (array of integer)
* @param float[] $paymentDiscountPercents __BT-20, BR-DE-18, From _EN 16931 XRECHNUNG__ Array of Payment discount percents (array of decimal)
* @param float[] $paymentDiscountBaeeAmounts __BT-20, BR-DE-18, From _EN 16931 XRECHNUNG__ Array of Payment discount base amounts (array of decimal)
* @param float[] $paymentDiscountBaseAmounts __BT-20, BR-DE-18, From _EN 16931 XRECHNUNG__ Array of Payment discount base amounts (array of decimal)
* @param DateTime|null $dueDate __BT-9, From EN 16931 XRECHNUNG__ The date by which payment is due Note: The payment due date reflects the net payment due date. In the case of partial payments, this indicates the first due date of a net payment. The corresponding description of more complex payment terms can be given in BT-20.
* @param string|null $directDebitMandateID __BT-89, From EN 16931 XRECHNUNG__ Unique identifier assigned by the payee to reference the direct debit authorization.
* @return ZugferdDocumentBuilder
*/
public function addDocumentPaymentTermXRechnung(string $description, array $paymentDiscountDays = [], array $paymentDiscountPercents = [], array $paymentDiscountBaeeAmounts = [], ?DateTime $dueDate = null, ?string $directDebitMandateID = null): ZugferdDocumentBuilder
public function addDocumentPaymentTermXRechnung(string $description, array $paymentDiscountDays = [], array $paymentDiscountPercents = [], array $paymentDiscountBaseAmounts = [], ?DateTime $dueDate = null, ?string $directDebitMandateID = null): ZugferdDocumentBuilder
{
$paymentTermsDescription = [];

Expand All @@ -2313,12 +2313,12 @@ public function addDocumentPaymentTermXRechnung(string $description, array $paym
foreach ($paymentDiscountDays as $paymentDiscountDayIndex => $paymentDiscountDay) {
$paymentTermsDescription[] =
sprintf(
!isset($paymentDiscountBaeeAmounts[$paymentDiscountDayIndex])
!isset($paymentDiscountBaseAmounts[$paymentDiscountDayIndex])
? "#SKONTO#TAGE=%s#PROZENT=%s#"
: "#SKONTO#TAGE=%s#PROZENT=%s#BASISBETRAG=%s#",
number_format($paymentDiscountDay, 0, ".", ""),
number_format($paymentDiscountPercents[$paymentDiscountDayIndex] ?? 0.0, 2, ".", ""),
number_format($paymentDiscountBaeeAmounts[$paymentDiscountDayIndex] ?? 0.0, 2, ".", "")
number_format($paymentDiscountBaseAmounts[$paymentDiscountDayIndex] ?? 0.0, 2, ".", "")
);
}

Expand Down

0 comments on commit 2a2ff79

Please sign in to comment.