FIX bank account not visible on payment card
This commit is contained in:
parent
f942ba543e
commit
a2da0dab7d
@ -236,7 +236,7 @@ $disable_delete = 0;
|
|||||||
// Bank account
|
// Bank account
|
||||||
if (! empty($conf->banque->enabled))
|
if (! empty($conf->banque->enabled))
|
||||||
{
|
{
|
||||||
if ($object->bank_account)
|
if ($object->fk_account > 0)
|
||||||
{
|
{
|
||||||
$bankline=new AccountLine($db);
|
$bankline=new AccountLine($db);
|
||||||
$bankline->fetch($object->bank_line);
|
$bankline->fetch($object->bank_line);
|
||||||
@ -257,9 +257,8 @@ if (! empty($conf->banque->enabled))
|
|||||||
print '<td>'.$langs->trans('BankAccount').'</td>';
|
print '<td>'.$langs->trans('BankAccount').'</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
$accountstatic=new Account($db);
|
$accountstatic=new Account($db);
|
||||||
$accountstatic->id=$bankline->fk_account;
|
$accountstatic->fetch($bankline->fk_account);
|
||||||
$accountstatic->label=$bankline->bank_account_ref.' - '.$bankline->bank_account_label;
|
print $accountstatic->getNomUrl(1);
|
||||||
print $accountstatic->getNomUrl(0);
|
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user