Remove dropdown functionality for D-section lines (calculated lines)

Fixed:
- Removed clickable links and dropdown panels for lines 25, 26, TD, 28, 29
- These lines are calculated automatically and have no account mappings
- Changed from clickable links to simple bold text for line numbers
- Removed dropdown rows and AJAX loading for D-section
- Kept dropdowns only for mapped lines (A1-A5, 08, 09, 9B, 17, 20, 21, 22)

This makes the interface cleaner and more logical since D-section lines are calculated, not mapped.
This commit is contained in:
Frank Cools 2025-10-02 23:46:35 +02:00
parent 0bcbc3eac5
commit d5f8039ef5

View File

@ -332,22 +332,10 @@ foreach ($section_d_lines as $line) {
}
print '<tr>';
print '<td><a href="#" onclick="toggleDetails(\'' . $line . '\'); return false;" class="butAction">' . $line . '</a></td>';
print '<td><strong>' . $line . '</strong></td>';
print '<td colspan="2">' . $description . '</td>';
print '<td class="right">' . formatAmount($data['vat_amount']) . '</td>';
print '</tr>';
// Add dropdown row for account details
print '<tr id="details_' . $line . '" style="display: none;">';
print '<td colspan="4">';
print '<div class="account-details">';
print '<div class="account-details-header">' . $langs->trans("AccountBreakdown") . ' - ' . $line . '</div>';
print '<div class="account-details-content" id="content_' . $line . '">';
print '<div class="loading">' . $langs->trans("Loading") . '...</div>';
print '</div>';
print '</div>';
print '</td>';
print '</tr>';
}
// Show message if no data