/** Overloading the doActions function : replacing the parent's function with the one below 
  *  @param      parameters  meta datas of the hook (context, etc...) 
  *  @param      object             the object you want to process (an invoice if you are in invoice module, a propale in propale's module, etc...) 
  *  @param      action             current action (if set). Generally create or edit or null 
  *  @return       void 
  */
 function formObjectOptions($parameters, &$object, &$action, $hookmanager)
 {
     global $db, $langs;
     if (in_array('ordercard', explode(':', $parameters['context'])) && $object->statut < 3) {
         dol_include_once('/shippableorder/class/shippableorder.class.php');
         $shippableOrder = new ShippableOrder($db);
         $shippableOrder->isOrderShippable($object->id);
         echo '<tr><td>' . $langs->trans('ShippableStatus') . '</td>';
         echo '<td>' . $shippableOrder->orderStockStatus(false) . '</td></tr>';
         $object->shippableorder = $shippableOrder;
     }
     return 0;
 }
 print '<a href="#" id="checkall">' . $langs->trans("All") . '</a> / <a href="#" id="checknone">' . $langs->trans("None") . '</a>';
 print '</td>';
 print '</tr>';
 print '</form>';
 print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
 $var = true;
 $total = 0;
 $totaltoship = 0;
 $subtotal = 0;
 while ($objp = $db->fetch_object($resql)) {
     $BdisplayLine = true;
     $generic_commande->id = $objp->rowid;
     $generic_commande->ref = $objp->ref;
     $shippableOrder->isOrderShippable($objp->rowid);
     if (!empty($search_status)) {
         $result = $shippableOrder->orderStockStatus(true, 'code');
         if (!in_array($result, $search_status)) {
             $BdisplayLine = false;
         }
     }
     if ($BdisplayLine == true) {
         $var = !$var;
         print '<tr ' . $bc[$var] . '>';
         print '<td class="nowrap">';
         print '<table class="nobordernopadding"><tr class="nocellnopadd">';
         print '<td class="nobordernopadding nowrap">';
         print $generic_commande->getNomUrl(1);
         print '</td>';
         print '<td style="min-width: 20px" class="nobordernopadding nowrap">';
         if ($objp->fk_statut > 0 && $objp->fk_statut < 3 && max($db->jdate($objp->date_commande), $db->jdate($objp->date_livraison)) < $now - $conf->commande->client->warning_delay) {
             print img_picto($langs->trans("Late"), "warning");