/**
  * 
  */
 static function Display()
 {
     require VIEW . '/v_header.php';
     if (Session::IsUserLogged()) {
         require VIEW . '/v_menu.php';
     } else {
         header('Location: http://' . DOMAIN . '/home/login');
     }
     require VIEW . '/v_footer.php';
 }
 static function Delete($item, $id)
 {
     if (Session::IsUserLogged()) {
         switch ($item) {
             case 'npentry':
                 if (Session::Get('accountant') == false) {
                     $query = '
                         DELETE FROM non_package_entry
                         WHERE id=:id_non_package_entry
                         AND fk_expense_report
                         IN(
                             SELECT id
                             FROM expense_report
                             WHERE YEAR(report_date) = YEAR(NOW())
                             AND MONTH(report_date) = MONTH(NOW())
                             AND fk_representative=:id_representative
                         )
                     ';
                     Database::Exec($query, ['id_non_package_entry' => $id, 'id_representative' => Session::Get('id')]);
                     header('Location: /report/show');
                 }
                 break;
             default:
                 throw new Exception('Paramètre incorrect.');
         }
     } else {
         header('Location: /home/login');
     }
 }