Skip to content

Commit

Permalink
#177 Fixed Inconsistent Naming in Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Nov 22, 2024
1 parent 43dff88 commit 0976dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ZugferdDocumentReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4222,18 +4222,18 @@ public function getDocumentPositionTax(?string &$categoryCode, ?string &$typeCod
* Get information about the period relevant for the invoice item.
* Note: Also known as the invoice line delivery period.
*
* @param DateTime|null $startdate
* @param DateTime|null $startDate
* Start of the billing period
* @param DateTime|null $endDate
* End of the billing period
* @return ZugferdDocumentReader
*/
public function getDocumentPositionBillingPeriod(?DateTime &$startdate, ?DateTime &$endDate): ZugferdDocumentReader
public function getDocumentPositionBillingPeriod(?DateTime &$startDate, ?DateTime &$endDate): ZugferdDocumentReader
{
$tradeLineItem = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getIncludedSupplyChainTradeLineItem", []);
$tradeLineItem = $tradeLineItem[$this->positionPointer];

$startdate = $this->getObjectHelper()->toDateTime(
$startDate = $this->getObjectHelper()->toDateTime(
$this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getBillingSpecifiedPeriod.getStartDateTime.getDateTimeString.value", null),
$this->getInvoiceValueByPathFrom($tradeLineItem, "getSpecifiedLineTradeSettlement.getBillingSpecifiedPeriod.getStartDateTime.getDateTimeString.getFormat", null)
);
Expand Down

0 comments on commit 0976dd4

Please sign in to comment.