Début ajout bon de livraison
This commit is contained in:
parent
458ae54ade
commit
8819e2b286
@ -424,13 +424,16 @@ else
|
|||||||
|
|
||||||
// Date
|
// Date
|
||||||
print '<tr><td>'.$langs->trans("Date").'</td>';
|
print '<tr><td>'.$langs->trans("Date").'</td>';
|
||||||
print "<td>".strftime("%A %d %B %Y",$livraison->date)."</td>\n";
|
print "<td>".strftime("%A %d %B %Y",$livraison->date_creation)."</td>\n";
|
||||||
/*
|
|
||||||
// Entrepot
|
if (!$conf->expedition->enabled && $conf->stock->enabled)
|
||||||
$entrepot = new Entrepot($db);
|
{
|
||||||
$entrepot->fetch($expedition->entrepot_id);
|
// Entrepot
|
||||||
print '<td width="20%">'.$langs->trans("Warehouse").'</td><td><a href="'.DOL_URL_ROOT.'/product/stock/fiche.php?id='.$entrepot->id.'">'.$entrepot->libelle.'</a></td>';
|
$entrepot = new Entrepot($db);
|
||||||
*/
|
$entrepot->fetch($expedition->entrepot_id);
|
||||||
|
print '<td width="20%">'.$langs->trans("Warehouse").'</td><td><a href="'.DOL_URL_ROOT.'/product/stock/fiche.php?id='.$entrepot->id.'">'.$entrepot->libelle.'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|||||||
@ -214,6 +214,7 @@ class Livraison
|
|||||||
$obj = $this->db->fetch_object($result);
|
$obj = $this->db->fetch_object($result);
|
||||||
|
|
||||||
$this->id = $obj->rowid;
|
$this->id = $obj->rowid;
|
||||||
|
$this->date_creation = $obj->date_creation;
|
||||||
$this->ref = $obj->ref;
|
$this->ref = $obj->ref;
|
||||||
$this->soc_id = $obj->socid;
|
$this->soc_id = $obj->socid;
|
||||||
$this->statut = $obj->fk_statut;
|
$this->statut = $obj->fk_statut;
|
||||||
@ -221,11 +222,11 @@ class Livraison
|
|||||||
$this->expedition_id = $obj->fk_expedition;
|
$this->expedition_id = $obj->fk_expedition;
|
||||||
$this->user_author_id = $obj->fk_user_author;
|
$this->user_author_id = $obj->fk_user_author;
|
||||||
$this->user_valid_id = $obj->fk_user_valid;
|
$this->user_valid_id = $obj->fk_user_valid;
|
||||||
$this->date = $obj->date_livraison;
|
$this->date_livraison = $obj->date_livraison;
|
||||||
$this->adresse_livraison_id = $obj->fk_entrepot;
|
$this->adresse_livraison_id = $obj->fk_entrepot;
|
||||||
$this->note = $obj->note;
|
$this->note = $obj->note;
|
||||||
$this->note_public = $obj->note_public;
|
$this->note_public = $obj->note_public;
|
||||||
$this->modelpdf = $obj->model_pdf;
|
$this->modelpdf = $obj->model_pdf;
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
|
||||||
if ($this->statut == 0) $this->brouillon = 1;
|
if ($this->statut == 0) $this->brouillon = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user