From f53485eb9a873b580164bc87d1c72c7efa088dd3 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Thu, 2 Oct 2025 22:34:09 +0200 Subject: [PATCH] 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 --- declarationtva_view.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/declarationtva_view.php b/declarationtva_view.php index 87a17b6..9e0b538 100644 --- a/declarationtva_view.php +++ b/declarationtva_view.php @@ -198,6 +198,14 @@ foreach ($base_vat_lines as $line) { print ''; } +// Line 16: Subtotal (calculated automatically) +$data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'vat_amount' => 0); +print ''; +print '16'; +print 'Sous-total TVA due (08 + 09 + 9B)'; +print '' . price($data['vat_amount']) . ''; +print ''; + // Reset to normal layout for line 17 print ''; print '' . $langs->trans("CA3Line") . '';