ajout des conditions de reglement
This commit is contained in:
parent
a788951115
commit
7b12a2f39f
@ -58,6 +58,15 @@ if ($_GET["action"] == 'attribute_prefix')
|
|||||||
$societe = new Societe($db, $_GET["socid"]);
|
$societe = new Societe($db, $_GET["socid"]);
|
||||||
$societe->attribute_prefix($db, $_GET["socid"]);
|
$societe->attribute_prefix($db, $_GET["socid"]);
|
||||||
}
|
}
|
||||||
|
// conditions de règlement
|
||||||
|
if ($_POST["action"] == 'setconditions')
|
||||||
|
{
|
||||||
|
|
||||||
|
$societe = new Societe($db, $_GET["socid"]);
|
||||||
|
$societe->cond_reglement=$_POST['mode_reglement_id'];
|
||||||
|
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET cond_reglement='".$_POST['mode_reglement_id']."' WHERE idp='".$socid."'";
|
||||||
|
$result = $db->query($sql);
|
||||||
|
}
|
||||||
// mode de règlement
|
// mode de règlement
|
||||||
if ($_POST["action"] == 'setmode')
|
if ($_POST["action"] == 'setmode')
|
||||||
{
|
{
|
||||||
@ -329,10 +338,22 @@ if ($_socid > 0)
|
|||||||
print '</td><td colspan="3">'.$objsoc->price_level."</td>";
|
print '</td><td colspan="3">'.$objsoc->price_level."</td>";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
// mode de règlement
|
|
||||||
if($conf->facture->enabled)
|
if($conf->facture->enabled)
|
||||||
{
|
{
|
||||||
|
// conditions de règlement
|
||||||
$langs->load('bills');
|
$langs->load('bills');
|
||||||
|
$html = new Form($db);
|
||||||
|
print '<tr><td nowrap>';
|
||||||
|
print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
|
||||||
|
print $langs->trans('PaymentConditions');
|
||||||
|
print '<td><td align="right">';
|
||||||
|
print ' ';
|
||||||
|
print '</td></tr></table>';
|
||||||
|
print '</td><td colspan="3">';
|
||||||
|
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->cond_reglement,'mode_reglement_id');
|
||||||
|
print "</td>";
|
||||||
|
print '</tr>';
|
||||||
|
// mode de règlement
|
||||||
print '<tr><td nowrap>';
|
print '<tr><td nowrap>';
|
||||||
print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
|
print '<table width="100%" class="nobordernopadding"><tr><td nowrap>';
|
||||||
print $langs->trans('PaymentMode');
|
print $langs->trans('PaymentMode');
|
||||||
@ -340,7 +361,6 @@ if ($_socid > 0)
|
|||||||
print ' ';
|
print ' ';
|
||||||
print '</td></tr></table>';
|
print '</td></tr></table>';
|
||||||
print '</td><td colspan="3">';
|
print '</td><td colspan="3">';
|
||||||
$html = new Form($db);
|
|
||||||
$html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
|
$html->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$objsoc->id,$objsoc->mode_reglement,'mode_reglement_id');
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|||||||
@ -665,9 +665,8 @@ if ($_GET['action'] == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Conditions de réglement
|
// Conditions de réglement
|
||||||
$cond_reglement_id_defaut=1;
|
|
||||||
print '<tr><td nowrap>'.$langs->trans('PaymentConditions').'</td><td>';
|
print '<tr><td nowrap>'.$langs->trans('PaymentConditions').'</td><td>';
|
||||||
$html->select_conditions_paiements($cond_reglement_id_defaut,'cond_reglement_id');
|
$html->select_conditions_paiements($soc->cond_reglement,'cond_reglement_id');
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Mode de réglement
|
// Mode de réglement
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user