Merge pull request #19543 from mbinformatique68/develop

FIX Get societe terms of payment if getpost terms of payment is 0 on creating propal
This commit is contained in:
Laurent Destailleur 2021-12-16 18:19:29 +01:00 committed by GitHub
commit 4cd512738f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1646,7 +1646,7 @@ if ($action == 'create') {
// Terms of payment
print '<tr><td class="nowrap">'.$langs->trans('PaymentConditionsShort').'</td><td>';
print img_picto('', 'paiment');
$form->select_conditions_paiements((GETPOSTISSET('cond_reglement_id') ? GETPOST('cond_reglement_id', 'int') : $soc->cond_reglement_id), 'cond_reglement_id', -1, 1);
$form->select_conditions_paiements((GETPOSTISSET('cond_reglement_id') && GETPOST('cond_reglement_id') != 0) ? GETPOST('cond_reglement_id', 'int') : $soc->cond_reglement_id, 'cond_reglement_id', -1, 1);
print '</td></tr>';
// Mode of payment