Fix length of list
This commit is contained in:
parent
f9cb209262
commit
3a40078149
@ -43,9 +43,8 @@ if (isset($user->socid) && $user->socid > 0) {
|
|||||||
$max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
|
$max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
|
||||||
|
|
||||||
// Maximum elements of the tables
|
// Maximum elements of the tables
|
||||||
$maxDraftCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD;
|
$maxDraftCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? $max : $conf->global->MAIN_MAXLIST_OVERLOAD;
|
||||||
$maxLatestEditCount = 5;
|
$maxOpenCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? $max : $conf->global->MAIN_MAXLIST_OVERLOAD;
|
||||||
$maxOpenCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -64,7 +63,7 @@ if ($tmp) {
|
|||||||
print $tmp;
|
print $tmp;
|
||||||
print '<br>';
|
print '<br>';
|
||||||
}
|
}
|
||||||
$tmp = getCustomerInvoiceDraftTable($max, $socid);
|
$tmp = getCustomerInvoiceDraftTable($maxDraftCount, $socid);
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
print $tmp;
|
print $tmp;
|
||||||
print '<br>';
|
print '<br>';
|
||||||
@ -74,13 +73,13 @@ print '</div>';
|
|||||||
|
|
||||||
print '<div class="fichetwothirdright">';
|
print '<div class="fichetwothirdright">';
|
||||||
|
|
||||||
$tmp = getCustomerInvoiceLatestEditTable($maxLatestEditCount, $socid);
|
$tmp = getCustomerInvoiceLatestEditTable($max, $socid);
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
print $tmp;
|
print $tmp;
|
||||||
print '<br>';
|
print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp = getCustomerInvoiceUnpaidOpenTable($max, $socid);
|
$tmp = getCustomerInvoiceUnpaidOpenTable($maxOpenCount, $socid);
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
print $tmp;
|
print $tmp;
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user