Met a jour le champs valo_pmp de la table llx_entrepot lors du calcul

This commit is contained in:
Rodolphe Quiedeville 2006-12-13 15:38:34 +00:00
parent ed830de3bd
commit fee54b16a6

View File

@ -202,6 +202,23 @@ class MouvementStock
dolibarr_syslog("MouvementStock::CalculateEntrepotValoPmp ERRORSQL[$error]");
}
}
if ($error === 0)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."entrepot";
$sql.= " SET valo_pmp='".ereg_replace(",",".",$new_value)."'";
$sql.= " WHERE rowid = $entrepot_id ";
if ($this->db->query($sql))
{
}
else
{
$error = -28;
dolibarr_syslog("MouvementStock::CalculateEntrepotValoPmp ERRORSQL[$error]");
}
}
if ($error === 0)
{