// $companies_pays = $companies; // foreach($companies_pays as $company){ // $tag = searchCountry($company->getNationality(),$tab_country_company); // if($tag !== false){ // array_push($tab_country_company[$company->getNationality()],$company); // } else { // $tab_country_company[$company->getNationality()] = array($company); // } // } // echo('<h2>'); // $final_line_country = array(); // foreach($tab_country_company as $tag => $country){ // foreach($country as $company){ // foreach($company->getOrdersMonth() as $key => $price){ // if(!isset($final_line_country[$tag][$key])){ // $final_line_country[$tag][$key] = $price; // } else { // $final_line_country[$tag][$key] += $price; // } // } // } // } //echo('</h2>'); // Get command who doesn't have been paid $ordersToGetPaid = $extraction->getOrdersToGetPaid(); // Get Product by date etc... $group_products = $extraction->getProductsFromOrders($deb_a, $end_a); //group_product["group"]["country"]["date"]{["name"]["quantity"]["pricetotal"]} $ordersFactured = $extraction->getOrdersFactured($deb_a, $end_a); } include '../view/monitoring.php';