ManageAnnulmentRequestXml.php 707 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace NavOnlineInvoice;
  3. class ManageAnnulmentRequestXml extends ManageInvoiceRequestXml {
  4. protected $rootName = "ManageAnnulmentRequest";
  5. protected function addInvoiceOperations() {
  6. $operationsXml = $this->xml->addChild("annulmentOperations");
  7. // Számlák hozzáadása az XML-hez
  8. foreach ($this->invoiceOperations->getInvoices() as $invoice) {
  9. $invoiceXml = $operationsXml->addChild("annulmentOperation");
  10. $invoiceXml->addChild("index", $invoice["index"]);
  11. $invoiceXml->addChild("annulmentOperation", $invoice["operation"]);
  12. $invoiceXml->addChild("invoiceAnnulment", $invoice["invoice"]);
  13. }
  14. }
  15. }