Add line 16 display in Section B

Fixed:
- Line 16 now appears in Section B between lines 9B and 17
- Line 16 shows as 'Sous-total TVA due (08 + 09 + 9B)' with bold formatting
- Line 16 displays the calculated subtotal amount
- Proper positioning in the CA-3 form structure
This commit is contained in:
Frank Cools 2025-10-02 22:34:09 +02:00
parent c638ce5233
commit f53485eb9a

View File

@ -198,6 +198,14 @@ foreach ($base_vat_lines as $line) {
print '</tr>';
}
// Line 16: Subtotal (calculated automatically)
$data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'vat_amount' => 0);
print '<tr class="pair">';
print '<td><strong>16</strong></td>';
print '<td colspan="2"><strong>Sous-total TVA due (08 + 09 + 9B)</strong></td>';
print '<td class="right"><strong>' . price($data['vat_amount']) . '</strong></td>';
print '</tr>';
// Reset to normal layout for line 17
print '<tr class="liste_titre">';
print '<th>' . $langs->trans("CA3Line") . '</th>';