diff --git a/application/controllers/Items.php b/application/controllers/Items.php index 4b2ff48fd..8ced1a901 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -38,7 +38,6 @@ class Items extends Secure_area implements iData_controller $data['manage_table'] = get_items_manage_table( $this->Item->get_all($stock_location, $lines_per_page, $limit_from), $this ); $this->load->view('items/manage', $data); - } function find_item_info() diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 89c061c70..3a91f6209 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -127,8 +127,6 @@ class Sales extends Secure_area $sale_rows = get_sales_manage_table_data_rows($sales, $this); $payment_summary = get_sales_manage_payments_summary($payments, $sales, $this); - // do not move this line to be after the json_encode otherwise the search function won't work!! - echo json_encode(array('total_rows' => $total_rows, 'rows' => $sale_rows, 'pagination' => $links, 'payment_summary' => $payment_summary)); }