add default payment mode select
This commit is contained in:
parent
9b9e6403ae
commit
917423dc0c
@ -347,6 +347,10 @@ if ($id > 0)
|
||||
print '</td><td colspan="3">';
|
||||
if ($action == 'editmode')
|
||||
{
|
||||
if (empty($object->mode_reglement_id))
|
||||
{
|
||||
$object->mode_reglement_id=$conf->global->MAIN_PAYMENT_MODE_DEFAULT;
|
||||
}
|
||||
$form->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
|
||||
}
|
||||
else
|
||||
|
||||
@ -232,6 +232,10 @@ if ($object->fetch($id))
|
||||
print '</td><td colspan="3">';
|
||||
if ($action == 'editmode')
|
||||
{
|
||||
if (empty($object->mode_reglement_supplier_id))
|
||||
{
|
||||
$object->mode_reglement_supplier_id=$conf->global->MAIN_PAYMENT_MODE_DEFAULT;
|
||||
}
|
||||
$form->form_modes_reglement($_SERVER['PHP_SELF'].'?socid='.$object->id,$object->mode_reglement_supplier_id,'mode_reglement_supplier_id');
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user