Dbut ajout bon de livraison

This commit is contained in:
Regis Houssin 2006-05-31 13:35:48 +00:00
parent aef7a23194
commit ef0a3ba35d
2 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class Livraison
var $db ;
var $id ;
var $brouillon;
var $entrepot_id;
var $commande_id;
/**
* Initialisation

View File

@ -139,8 +139,10 @@ class pdf_typhon extends ModelePDFDeliveryOrder
{
$delivery = new Livraison($this->db);
$delivery->fetch($id);
$delivery->commande = new Livraison($this->db);
$delivery->commande->id = $delivery->commande_id;
$delivery->commande = fetch_commande();
$delivery->commande->fetch_commande();
$nblignes = sizeof($delivery->commande->lignes);