From b8615ceba0b89c6a8edd81e982a87f1028af94e1 Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Thu, 2 Oct 2025 23:49:22 +0200 Subject: [PATCH] Add light red background to calculated lines for better visual distinction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhanced: - Line 16 (Sous-total TVA due): Light red background (#ffe6e6) - Line 23 (Sous-total TVA déductible): Light red background (#ffe6e6) - All D-section lines (25, 26, TD, 28, 29): Light red background (#ffe6e6) This makes calculated/result lines stand out visually from mapped lines, improving user experience and making it clear which lines are automatically calculated vs manually configured. --- declarationtva_view.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/declarationtva_view.php b/declarationtva_view.php index e434615..cf466af 100644 --- a/declarationtva_view.php +++ b/declarationtva_view.php @@ -234,7 +234,7 @@ foreach ($base_vat_lines as $line) { // Line 16: Subtotal (calculated automatically) $data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'vat_amount' => 0); -print ''; +print ''; print '16'; print 'Sous-total TVA due (08 + 09 + 9B)'; print '' . formatAmount($data['vat_amount']) . ''; @@ -303,7 +303,7 @@ foreach ($section_c_lines as $line) { // Line 23: Subtotal (calculated automatically) $data = isset($ca3_data['23']) ? $ca3_data['23'] : array('line_label' => '', 'vat_amount' => 0); -print ''; +print ''; print '23'; print 'Sous-total TVA déductible (20 + 21 + 22)'; print '' . formatAmount($data['vat_amount']) . ''; @@ -331,7 +331,7 @@ foreach ($section_d_lines as $line) { $description = isset($ca3_definitions[$line]) ? $ca3_definitions[$line]['label'] : $data['line_label']; } - print ''; + print ''; print '' . $line . ''; print '' . $description . ''; print '' . formatAmount($data['vat_amount']) . '';