diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index ae012e9b813..c3cabdffad1 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -58,6 +58,14 @@ if ($_GET["action"] == 'attribute_prefix') $societe = new Societe($db, $_GET["socid"]); $societe->attribute_prefix($db, $_GET["socid"]); } +// mode de règlement +if ($_POST["action"] == 'setmode') +{ + $societe = new Societe($db, $_GET["socid"]); + $societe->mode_reglement=$_POST['mode_reglement_id']; + $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET mode_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$socid."'"; + $result = $db->query($sql); +} if ($action == 'recontact') { @@ -321,7 +329,23 @@ if ($_socid > 0) print '
| '; + print $langs->trans('PaymentMode'); + print ' | '; + print ' '; + print ' |