public function get_item_sales_from_this_branch_post() { $date_from = $this->input->post('dateFrom'); $date_to = $this->input->post('dateTo'); $by_quantity = $this->input->post('byQuantity'); // true or false $branch_id = $this->input->post('branchId'); $analytics = new Analytics($this->base_model->get_db_instance()); echo $analytics->get_item_sales_from_branch($date_from, $date_to, $by_quantity, $branch_id); }
public function get_item_sales_from_this_branch_post() { $analytics = new Analytics($this->base_model->get_db_instance()); echo $analytics->get_item_sales_from_branch('2015-06-07 14:56:03', date('Y-m-d H:i:s'), !true, 'KAB002'); }