|
|
|
|
@ -42,7 +42,7 @@ class Order_finance extends CI_Controller {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
$report_order_exists = $this->OrderFinance_model->get_report_order($order_info->ordernumber);
|
|
|
|
|
if ( ! empty($report_order_exists)) {
|
|
|
|
|
if ( ! empty($report_order_exists) && $debug===false) {
|
|
|
|
|
return $this->output->set_content_type('application/json')->set_output(json_encode($report_order_exists));
|
|
|
|
|
}
|
|
|
|
|
return $this->generate_report($order_info, $debug);
|
|
|
|
|
|