allow empty value for payment conditions like in orders

This commit is contained in:
Christophe Battarel 2019-03-18 16:39:59 +01:00
parent 042cceb8f8
commit bd542b6b22
2 changed files with 2 additions and 2 deletions

View File

@ -1624,7 +1624,7 @@ if ($action == 'create')
// Terms of payment
print '<tr><td class="nowrap fieldrequired">' . $langs->trans('PaymentConditionsShort') . '</td><td>';
$form->select_conditions_paiements($soc->cond_reglement_id, 'cond_reglement_id');
$form->select_conditions_paiements($soc->cond_reglement_id, 'cond_reglement_id', -1, 1);
print '</td></tr>';
// Mode of payment

View File

@ -3071,7 +3071,7 @@ if ($action == 'create')
// Payment term
print '<tr><td class="nowrap fieldrequired">' . $langs->trans('PaymentConditionsShort') . '</td><td colspan="2">';
$form->select_conditions_paiements(isset($_POST['cond_reglement_id']) ? $_POST['cond_reglement_id'] : $cond_reglement_id, 'cond_reglement_id');
$form->select_conditions_paiements(isset($_POST['cond_reglement_id']) ? $_POST['cond_reglement_id'] : $cond_reglement_id, 'cond_reglement_id', -1, 1);
print '</td></tr>';
// Payment mode