Ajout mode_reglement et cond_reglement
This commit is contained in:
parent
dafa5a8f0b
commit
b546d40be7
@ -63,8 +63,8 @@ if ($_POST["action"] == 'setconditions')
|
|||||||
{
|
{
|
||||||
|
|
||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db, $_GET["socid"]);
|
||||||
$societe->cond_reglement=$_POST['mode_reglement_id'];
|
$societe->cond_reglement=$_POST['cond_reglement_id'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$socid."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['cond_reglement_id']."' WHERE idp='".$socid."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
}
|
}
|
||||||
// mode de règlement
|
// mode de règlement
|
||||||
@ -353,7 +353,7 @@ if ($_socid > 0)
|
|||||||
print '</td><td colspan="3">';
|
print '</td><td colspan="3">';
|
||||||
if ($_GET['action'] == 'editconditions')
|
if ($_GET['action'] == 'editconditions')
|
||||||
{
|
{
|
||||||
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'mode_reglement_id');
|
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'cond_reglement_id');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -385,8 +385,8 @@ if ($_POST['action'] == 'set_contact')
|
|||||||
if ($_POST["action"] == 'setconditions')
|
if ($_POST["action"] == 'setconditions')
|
||||||
{
|
{
|
||||||
$propal = new Propal($db, $_GET["propalid"]);
|
$propal = new Propal($db, $_GET["propalid"]);
|
||||||
$propal->cond_reglement=$_POST['mode_reglement_id'];
|
$propal->cond_reglement=$_POST['cond_reglement_id'];
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$propalid."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['cond_reglement_id']."' WHERE idp='".$propalid."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user