public function printInvoice($order_id, $res = 'invoice-sent', $hstyle = 'basicVER3') { $this->load->model('sale/order'); $this->load->model('catalog/product'); if ($order_id) { $api = new InvfoxAPI($this->CONF['API_KEY'], $this->CONF['API_DOMAIN'], true); $api->printInvoice($order_id, $res, $hstyle); } else { echo "Error : There is no invoice generated"; } //$order = $this->model_sale_order->getOrder($order_id); }
public function printInvoice($order_id, $res = 'invoice-sent', $hstyle = 'basicVER3') { if ($order_id) { $api = new InvfoxAPI($this->CONF['API_KEY'], $this->CONF['API_DOMAIN'], true); $api->printInvoice($order_id, $res, $hstyle); } else { echo "Error : There is no invoice generated"; } }