Skip to content

Commit

Permalink
fix logisticsServiceCharge class for tests (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier authored Mar 1, 2024
1 parent 126f449 commit e165cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/zugferd211/Tests/BuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Easybill\ZUGFeRD211\Model\LineTradeAgreement;
use Easybill\ZUGFeRD211\Model\LineTradeDelivery;
use Easybill\ZUGFeRD211\Model\LineTradeSettlement;
use Easybill\ZUGFeRD211\Model\LogisticsServiceCharge;
use Easybill\ZUGFeRD211\Model\Note;
use Easybill\ZUGFeRD211\Model\Quantity;
use Easybill\ZUGFeRD211\Model\FormattedDateTime;
Expand Down Expand Up @@ -336,7 +337,7 @@ public function testBuildXRechnungExtendedExample(): void
$invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->paymentReference = '421102';
$invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->currency = 'EUR';
$invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->payeeTradeParty = $sellerTradeParty;
$invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->specifiedLogisticsServiceCharge[] = $logisticsServiceCharge = new ProcuringProject();
$invoice->supplyChainTradeTransaction->applicableHeaderTradeSettlement->specifiedLogisticsServiceCharge[] = $logisticsServiceCharge = new LogisticsServiceCharge();

$logisticsServiceCharge->description = 'Versandkosten';
$logisticsServiceCharge->appliedAmount = Amount::create('0');
Expand Down

0 comments on commit e165cb8

Please sign in to comment.