/[dolibarr]/dolibarr/htdocs/expedition/liste.php
ViewVC logotype

Diff of /dolibarr/htdocs/expedition/liste.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by hregis, Thu Dec 1 14:15:44 2005 UTC revision 1.20 by eldy, Sat Dec 3 21:16:18 2005 UTC
# Line 18  Line 18 
18   *   *
19   * $Id$   * $Id$
20   * $Source$   * $Source$
  *  
21   */   */
22    
23  /**  /**
# Line 58  $offset = $limit * $_GET["page"] ; Line 57  $offset = $limit * $_GET["page"] ;
57  llxHeader('',$langs->trans('ListOfSendings'),'ch-expedition.html');  llxHeader('',$langs->trans('ListOfSendings'),'ch-expedition.html');
58    
59  $sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut" ;  $sql = "SELECT e.rowid, e.ref,".$db->pdate("e.date_expedition")." as date_expedition, e.fk_statut" ;
60  $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e ";  $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e";
61    if ($socidp) $sql.=", ".MAIN_DB_PREFIX."commande as c";
62  $sql_add = " WHERE ";  $sql_add = " WHERE ";
63  if ($socidp)  if ($socidp)
64  {  {
65    $sql .= $sql_add . " s.idp = $socidp";    $sql.= $sql_add . " e.fk_commande = c.rowid AND c.fk_soc = ".$socidp;
66    $sql_add = " AND ";    $sql_add = " AND ";
67  }  }
   
68  if (strlen($_POST["sf_ref"]) > 0)  if (strlen($_POST["sf_ref"]) > 0)
69  {  {
70    $sql .= $sql_add . " e.ref like '%".$_POST["sf_ref"] . "%'";    $sql.= $sql_add . " e.ref like '%".$_POST["sf_ref"] . "%'";
71  }  }
72    
73  $expedition = new Expedition($db);  $expedition = new Expedition($db);

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26