Dbut ajout bon de livraison
This commit is contained in:
parent
aef7a23194
commit
ef0a3ba35d
@ -41,7 +41,7 @@ class Livraison
|
||||
var $db ;
|
||||
var $id ;
|
||||
var $brouillon;
|
||||
var $entrepot_id;
|
||||
var $commande_id;
|
||||
|
||||
/**
|
||||
* Initialisation
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user