Merge pull request #9321 from atm-gauthier/6.0_fix_default_bank_on_create_propal

FIX : $fk_account is always empty, must be $soc->fk_account
This commit is contained in:
Laurent Destailleur 2018-08-29 17:56:36 +02:00 committed by GitHub
commit 46a24ff28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1451,7 +1451,7 @@ if ($action == 'create')
// Bank Account
if (! empty($conf->global->BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL) && ! empty($conf->banque->enabled)) {
print '<tr><td>' . $langs->trans('BankAccount') . '</td><td>';
$form->select_comptes($fk_account, 'fk_account', 0, '', 1);
$form->select_comptes($soc->fk_account, 'fk_account', 0, '', 1);
print '</td></tr>';
}