Le module Commande reçoit l'argument société pour calculer son numéro
This commit is contained in:
parent
14209a46ec
commit
5c82756330
@ -124,7 +124,9 @@ class Commande
|
|||||||
|
|
||||||
// Recuperation de la nouvelle reference
|
// Recuperation de la nouvelle reference
|
||||||
$objMod = new $modName($this->db);
|
$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 = "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 ;";
|
$sql .= " WHERE rowid = $this->id AND fk_statut = 0 ;";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user