From bd649fa03d361d88556a352226747e77abb8763c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 29 May 2006 16:07:18 +0000 Subject: [PATCH] bugfix --- htdocs/livraison/livraison.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/livraison/livraison.class.php b/htdocs/livraison/livraison.class.php index 95894702f8c..ee2045de719 100644 --- a/htdocs/livraison/livraison.class.php +++ b/htdocs/livraison/livraison.class.php @@ -266,7 +266,7 @@ class Livraison require_once DOL_DOCUMENT_ROOT .'/livraison/mods/'.LIVRAISON_ADDON.'.php'; // Definition du nom de module de numerotation de commande - $modName=COMMANDE_ADDON; + $modName=LIVRAISON_ADDON; // Recuperation de la nouvelle reference $objMod = new $modName($this->db); @@ -274,10 +274,10 @@ class Livraison $soc->fetch($this->soc_id); // on vérifie si le bon de livraison est en numérotation provisoire - $comref = substr($this->ref, 1, 4); - if ($comref == PROV) + $livref = substr($this->ref, 1, 4); + if ($livref == PROV) { - $num = $objMod->commande_get_num($soc); + $num = $objMod->livraison_get_num($soc); } else {