Example #1
0
 public function ligneSuppAutreChambre(Saison $saison, $arr, $id)
 {
     $chambre = $this->em->getRepository('BackHotelTunisieBundle:Chambre')->find($id);
     if ($chambre->getType() == 0) {
         foreach ($saison->getSuppChambres() as $ch) {
             if ($ch->getChambre()->getId() == $id) {
                 return array('code' => 'SUPP-AUTRE-CHAMBRE', 'name' => 'Supp ' . $ch->getChambre()->getLibelle(), 'achat' => $ch->getSuppAchat($arr), 'vente' => $ch->getSuppVente($arr));
             }
         }
     }
 }