';
}
}
else
@@ -585,7 +588,7 @@ if ($resql)
$nbmax=15; // We accept to show last 15 receipts (so we can have more than one year)
$liste="";
$sql = "SELECT DISTINCT num_releve FROM ".MAIN_DB_PREFIX."bank";
- $sql.= " WHERE fk_account=".$id." AND num_releve IS NOT NULL";
+ $sql.= " WHERE fk_account=".$object->id." AND num_releve IS NOT NULL";
$sql.= $db->order("num_releve","DESC");
$sql.= $db->plimit($nbmax+1);
print '
';
@@ -614,17 +617,17 @@ if ($resql)
{
dol_print_error($db);
}
- /**
- * Using BANK_REPORT_LAST_NUM_RELEVE to automatically report last num (or not)
- */
- if ($conf->global->BANK_REPORT_LAST_NUM_RELEVE == 1) {
- print '
-
- ';
- }
- print '
';
+
+ // Using BANK_REPORT_LAST_NUM_RELEVE to automatically report last num (or not)
+ if ($conf->global->BANK_REPORT_LAST_NUM_RELEVE == 1)
+ {
+ print '
+
+ ';
+ }
+ print '
';
}
// Form to add a transaction with no invoice
@@ -721,11 +724,6 @@ if ($resql)
// Title
$bankcateg=new BankCateg($db);
- $morehtml='