|
@@ -277,10 +277,8 @@ print '</td></tr>';
|
|
|
// Bank account
|
|
|
if (!empty($conf->banque->enabled))
|
|
|
{
|
|
|
- if ($object->fk_account > 0)
|
|
|
- {
|
|
|
- if ($object->type_code == 'CHQ' && $bankline->fk_bordereau > 0)
|
|
|
- {
|
|
|
+ if ($object->fk_account > 0) {
|
|
|
+ if ($object->type_code == 'CHQ' && $bankline->fk_bordereau > 0) {
|
|
|
dol_include_once('/compta/paiement/cheque/class/remisecheque.class.php');
|
|
|
$bordereau = new RemiseCheque($db);
|
|
|
$bordereau->fetch($bankline->fk_bordereau);
|
|
@@ -297,7 +295,11 @@ if (!empty($conf->banque->enabled))
|
|
|
print '<tr>';
|
|
|
print '<td>'.$langs->trans('BankTransactionLine').'</td>';
|
|
|
print '<td>';
|
|
|
- print $bankline->getNomUrl(1, 0, 'showconciliatedandaccounted');
|
|
|
+ if ($object->fk_account > 0) {
|
|
|
+ print $bankline->getNomUrl(1, 0, 'showconciliatedandaccounted');
|
|
|
+ } else {
|
|
|
+ print $langs->trans("NoRecordFoundIBankcAccount", $langs->transnoentities("Module85Name"));
|
|
|
+ }
|
|
|
print '</td>';
|
|
|
print '</tr>';
|
|
|
}
|