From 1f53205f296854b2e07deeaca5017626c932f4f6 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 15 Dec 2006 16:43:27 +0000 Subject: [PATCH] Nettoyage --- .../canvas/product.livrecontrat.class.php | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/htdocs/product/canvas/product.livrecontrat.class.php b/htdocs/product/canvas/product.livrecontrat.class.php index e138ba1426f..ca25bff5776 100644 --- a/htdocs/product/canvas/product.livrecontrat.class.php +++ b/htdocs/product/canvas/product.livrecontrat.class.php @@ -140,11 +140,6 @@ class ProductLivreContrat extends Product $this->duree = $result["duree"]; $this->date_app = $result["date_app"]; - // On charge le livre pour avoir le titre - // ne pas utiliser FetchCanvas qui cree une boucle infinie - $this->livre = new ProductLivre($this->db); - $this->livre->Fetch($result["fk_cnv_livre"]); - $this->db->free(); } } @@ -189,28 +184,7 @@ class ProductLivreContrat extends Product */ function assign_values(&$smarty) { - $smarty->assign('prod_id', $this->id); - $smarty->assign('prod_ref', $this->ref); - $smarty->assign('prod_label', $this->livre->libelle); - $smarty->assign('prod_note', $this->note); - $smarty->assign('prod_description', $this->description); - $smarty->assign('prod_canvas', $this->canvas); - - $smarty->assign('prod_contrat_taux', $this->taux); - $smarty->assign('prod_contrat_duree', $this->duree); - $smarty->assign('prod_contrat_date_app', $this->date_app); - $smarty->assign('prod_contrat_quant', $this->quantite); - - $smarty->assign('prod_stock_reel', $this->stock_reel); - $smarty->assign('prod_stock_dispo', ($this->stock_reel - $this->stock_in_command)); - $smarty->assign('prod_stock_in_command', $this->stock_in_command); - $smarty->assign('prod_stock_alert', $this->seuil_stock_alerte); - - if ($this->seuil_stock_alerte > ($this->stock_reel - $this->stock_in_command) && $this->status == 1) - { - $smarty->assign('smarty_stock_dispo_class', 'class="alerte"'); - } } } ?>