コード例 #1
0
 public function printInvoice()
 {
     parent::transform('create_finvoice.xsl', 'Finvoice.xsd');
     header('Content-Type: text/xml');
     $filename = $this->getPrintoutFileName();
     if ($this->printStyle) {
         header("Content-Disposition: inline; filename={$filename}");
     } else {
         header("Content-Disposition: attachment; filename={$filename}");
     }
     echo $this->xml;
 }
コード例 #2
0
 public function printInvoice()
 {
     // First create the actual Finvoice
     parent::transform('create_finvoice.xsl', 'Finvoice.xsd');
     $finvoice = $this->xml;
     // Create the SOAP envelope
     parent::transform('create_finvoice_soap_envelope.xsl');
     header('Content-Type: text/xml');
     $filename = $this->getPrintoutFileName();
     if ($this->printStyle) {
         header("Content-Disposition: inline; filename={$filename}");
     } else {
         header("Content-Disposition: attachment; filename={$filename}");
     }
     echo $this->xml . "\n{$finvoice}";
 }