diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 98a8a6188e3..4bcd16fb9bc 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -95,7 +95,7 @@ if ($action == 'setconditions' && $user->rights->societe->creer) { $object->fetch($id); $object->cond_reglement=$_POST['cond_reglement_id']; - + // TODO move to DAO class $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['cond_reglement_id']; $sql.= "' WHERE rowid='".$id."'"; @@ -107,7 +107,7 @@ if ($action == 'setmode' && $user->rights->societe->creer) { $object->fetch($id); $object->mode_reglement=$_POST['mode_reglement_id']; - + // TODO move to DAO class $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET mode_reglement='".$_POST['mode_reglement_id']; $sql.= "' WHERE rowid='".$id."'"; @@ -119,7 +119,7 @@ if ($action == 'setassujtva' && $user->rights->societe->creer) { $object->fetch($id); $object->tva_assuj=$_POST['assujtva_value']; - + // TODO move to DAO class $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET tva_assuj='".$_POST['assujtva_value']."' WHERE rowid='".$id."'"; $result = $db->query($sql); @@ -396,7 +396,7 @@ if ($id > 0) } print ''; print '