Skip to content
Snippets Groups Projects
Commit 0e85aac0 authored by Rodolphe Quiedeville's avatar Rodolphe Quiedeville
Browse files

Modif structure

parent 1f6f51fe
No related branches found
No related tags found
No related merge requests found
......@@ -449,7 +449,7 @@ class TelephonieContrat {
*
*
*/
function addpo($montant)
function addpo($montant, $user)
{
$po = 0;
......@@ -476,9 +476,9 @@ class TelephonieContrat {
}
$sql = "INSERT INTO ".MAIN_DB_PREFIX."telephonie_contrat_priseordre";
$sql .= " (fk_contrat, datepo, montant, fk_user, fk_distributeur)";
$sql .= " (fk_contrat, datepo, montant, fk_commercial, fk_distributeur, fk_user)";
$sql .= " VALUES (".$this->id.",now(), ".$montant;
$sql .= ",".$this->commercial_sign_id.",".$did.")";
$sql .= ",".$this->commercial_sign_id.",".$did.",".$user->id.")";
$resql = $this->db->query($sql);
if ($resql)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment