Exemple #1
0
 /**
  * Download a pdf of the creditnote
  *
  * @param Creditnote $creditnote
  * @return
  */
 public function invoicesDownloadCreditnotePDF(Creditnote $creditnote, $headers = false)
 {
     if ($headers) {
         header('Content-type: application/pdf');
     }
     return $this->doCall('downloadInvoicePDF.php', array('creditnote_id' => $creditnote->getId()));
 }