Debug v18

This commit is contained in:
Laurent Destailleur 2023-04-10 01:55:31 +02:00
parent aea1f60c67
commit 2ebfb18809
2 changed files with 15 additions and 4 deletions

View File

@ -272,9 +272,10 @@ $object_label = $langs->trans("ObjectsRef");
if ($object->nature == 2 || $object->nature == 3) $object_label = $langs->trans("InvoiceRef"); if ($object->nature == 2 || $object->nature == 3) $object_label = $langs->trans("InvoiceRef");
if ($object->nature == 5) $object_label = $langs->trans("ExpenseReportRef"); if ($object->nature == 5) $object_label = $langs->trans("ExpenseReportRef");
/*
* Show result array // Show result array
*/ $i = 0;
print '<br>'; print '<br>';
print '<div class="div-table-responsive">'; print '<div class="div-table-responsive">';
@ -304,11 +305,21 @@ if (is_array($journal_data) && !empty($journal_data)) {
print '<td class="right nowraponall">' . $line['debit'] . '</td>'; print '<td class="right nowraponall">' . $line['debit'] . '</td>';
print '<td class="right nowraponall">' . $line['credit'] . '</td>'; print '<td class="right nowraponall">' . $line['credit'] . '</td>';
print '</tr>'; print '</tr>';
$i++;
} }
} }
} }
} }
if (!$i) {
$colspan = 7;
if ($object->nature == 4) {
$colspan++;
}
print '<tr class="oddeven"><td colspan="'.$colspan.'"><span class="opacitymedium">'.$langs->trans("NoRecordFound").'</span></td></tr>';
}
print '</table>'; print '</table>';
print '</div>'; print '</div>';

View File

@ -394,7 +394,7 @@ if ($resql) {
if ($othernb) { if ($othernb) {
print '<tr class="oddeven">'; print '<tr class="oddeven">';
print '<td class="nowrap">'; print '<td class="nowrap">';
print '<span class="opacitymedium">...</span>'; print '<span class="opacitymedium">'.$langs->trans("More").'...</span>';
print '</td>'; print '</td>';
print '<td class="nowrap right">'; print '<td class="nowrap right">';
print $othernb; print $othernb;