Merge pull request #21380 from cfoellmann/PR/fix-fetch-propal-conds

fix fetching mode_reglement default from soc/comm on propal creation
This commit is contained in:
Laurent Destailleur 2022-06-27 17:34:54 +02:00 committed by GitHub
commit 1d354aa844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1655,7 +1655,7 @@ if ($action == 'create') {
// Mode of payment
print '<tr><td>'.$langs->trans('PaymentMode').'</td><td>';
print img_picto('', 'bank').'&ensp;';
$form->select_types_paiements((GETPOSTISSET('mode_reglement_id') ? GETPOST('mode_reglement_id', 'int') : $soc->mode_reglement_id), 'mode_reglement_id', 'CRDT', 0, 1, 0, 0, 1, 'maxwidth200 widthcentpercentminusx');
$form->select_types_paiements((GETPOSTISSET('mode_reglement_id') && (GETPOST('mode_reglement_id') != 0 ? GETPOST('mode_reglement_id', 'int') : $soc->mode_reglement_id)), 'mode_reglement_id', 'CRDT', 0, 1, 0, 0, 1, 'maxwidth200 widthcentpercentminusx');
print '</td></tr>';
// Bank Account