Skip to content

Commit

Permalink
zugferd
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Oct 17, 2024
1 parent 9faf559 commit 2e22da2
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions app/Services/EDocument/Adapters/CII/PaymentMeans.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,32 @@ public function run()
$SupplyChainTradeTransactionType = new \horstoeko\zugferd\entities\extended\ram\SupplyChainTradeTransactionType();
$SupplyChainTradeTransactionType->setApplicableHeaderTradeSettlement($HeaderTradeSettlementType);

$cii = new \horstoeko\zugferd\entities\extended\rsm\CrossIndustryInvoice();
$cii->setSupplyChainTradeTransaction($SupplyChainTradeTransactionType);
// $cii = new \horstoeko\zugferd\entities\extended\rsm\CrossIndustryInvoice();
// $cii->setSupplyChainTradeTransaction($SupplyChainTradeTransactionType);

return $cii;


$d = \horstoeko\zugferd\ZugferdDocumentBuilder::CreateNew(\horstoeko\zugferd\ZugferdProfiles::PROFILE_XRECHNUNG_3);
// $d->setSupplyChainTradeTransaction($SupplyChainTradeTransactionType);

// nlog($d->getInvoiceObject()->getSupplyChainTradeTransaction());
$d->getObjectHelper()->tryCall($d->getInvoiceObject()->getSupplyChainTradeTransaction(), "setSupplyChainTradeTransaction", $SupplyChainTradeTransactionType);


$documentJsonExporter = new \horstoeko\zugferd\ZugferdDocumentJsonExporter($d);

// echo $documentJsonExporter->toPrettyJsonString();
// echo "\r\n\r\n";

$jsonObject = $documentJsonExporter->toJsonObject();

return $jsonObject;
// var_dump($jsonObject);

// echo "\r\n\r\n";


// return $cii;

// return $this;
}
Expand Down

0 comments on commit 2e22da2

Please sign in to comment.