Le module Commande reoit l'argument socit pour calculer son numro

This commit is contained in:
marc_ocebo
2005-03-06 14:22:39 +00:00
parent 14209a46ec
commit 5c82756330

View File

@@ -124,7 +124,9 @@ class Commande
// Recuperation de la nouvelle reference
$objMod = new $modName($this->db);
$num = $objMod->commande_get_num();
$soc = new Societe($this->db);
$soc->fetch($this->soc_id);
$num = $objMod->commande_get_num($soc);
$sql = "UPDATE ".MAIN_DB_PREFIX."commande SET ref='$num', fk_statut = 1, date_valid=now(), fk_user_valid=$user->id";
$sql .= " WHERE rowid = $this->id AND fk_statut = 0 ;";