Dbut ajout bon de livraison
This commit is contained in:
parent
1fdc7b9db8
commit
e9e4a78638
@ -196,7 +196,7 @@ class Livraison
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$sql = "SELECT l.rowid, l.date_creation, l.ref, l.fk_user_author,";
|
||||
$sql = "SELECT l.rowid, l.date_creation, l.date_valid, l.ref, l.fk_user_author,";
|
||||
$sql .=" l.fk_statut, l.fk_commande, l.fk_expedition, l.fk_user_valid, l.note, l.note_public";
|
||||
$sql .= ", ".$this->db->pdate("l.date_livraison")." as date_livraison, l.fk_adresse_livraison, l.model_pdf";
|
||||
$sql .= ", s.idp as socid";
|
||||
@ -211,6 +211,7 @@ class Livraison
|
||||
|
||||
$this->id = $obj->rowid;
|
||||
$this->date_creation = $obj->date_creation;
|
||||
$this->date_valid = $obj->date_valid;
|
||||
$this->ref = $obj->ref;
|
||||
$this->soc_id = $obj->socid;
|
||||
$this->statut = $obj->fk_statut;
|
||||
@ -219,7 +220,7 @@ class Livraison
|
||||
$this->user_author_id = $obj->fk_user_author;
|
||||
$this->user_valid_id = $obj->fk_user_valid;
|
||||
$this->date_livraison = $obj->date_livraison;
|
||||
$this->adresse_livraison_id = $obj->fk_entrepot;
|
||||
$this->adresse_livraison_id = $obj->fk_adresse_livraison;
|
||||
$this->note = $obj->note;
|
||||
$this->note_public = $obj->note_public;
|
||||
$this->modelpdf = $obj->model_pdf;
|
||||
|
||||
@ -672,7 +672,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
|
||||
$posy+=6;
|
||||
$pdf->SetXY(100,$posy);
|
||||
$pdf->SetTextColor(0,0,60);
|
||||
$pdf->MultiCell(100, 4, $langs->trans("Date")." : " . dolibarr_print_date($delivery->date,"%d %b %Y"), '', 'R');
|
||||
$pdf->MultiCell(100, 4, $langs->trans("Date")." : " . dolibarr_print_date($delivery->date_valid,"%d %b %Y"), '', 'R');
|
||||
|
||||
if ($showadress)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user