Skip to content

Commit

Permalink
Added ZugferdQuickDescriptor::doSetSupplyChainEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Nov 26, 2024
1 parent 41ce2be commit fe84c3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/XRechnung3SimpleQuick.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

$document = (ZugferdQuickDescriptorXRechnung3::doCreateNew())
->doCreateInvoice("471102", \DateTime::createFromFormat("Ymd", "20180305"), "EUR")
->doSetSupplyChainEvent(new \DateTime())
->doSetPaymentTerms("Zahlbar sofort", new \DateTime('+3 days'))
->doAddNote('Rechnung gemäß Bestellung vom 01.03.2018.')
->doAddNote('Lieferant GmbH' . PHP_EOL . 'Lieferantenstraße 20' . PHP_EOL . '80333 München' . PHP_EOL . 'Deutschland' . PHP_EOL . 'Geschäftsführer: Hans Muster' . PHP_EOL . 'Handelsregisternummer: H A 123' . PHP_EOL . PHP_EOL, ZugferdTextSubjectCodeQualifiers::UNTDID_4451_REG)
Expand Down
14 changes: 13 additions & 1 deletion src/quick/ZugferdQuickDescriptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Creating them in a simple and common way in EN16931 profile
* This class is slightly inspired by the invoicedescriptor of the
* __https://github.com/stephanstapel/ZUGFeRD-csharp__ project
*
*
* This class contains only basic functionality
*
* @category Zugferd
Expand Down Expand Up @@ -385,6 +385,18 @@ public function doSetSpecifiedProcuringProject(string $id, string $name): Zugfer
return $this;
}

/**
* Set detailed information on the actual delivery
*
* @param DateTime|null $date __BT-72, From BASIC WL__ Actual delivery time
* @return ZugferdQuickDescriptor
*/
public function doSetSupplyChainEvent(?DateTime $date): ZugferdQuickDescriptor
{
$this->setDocumentSupplyChainEvent($date);
return $this;
}

/**
* Detailed information about the buyer (service recipient)
*
Expand Down

0 comments on commit fe84c3a

Please sign in to comment.