Add light red background to calculated lines for better visual distinction
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.
This commit is contained in:
parent
d5f8039ef5
commit
b8615ceba0
@ -234,7 +234,7 @@ foreach ($base_vat_lines as $line) {
|
|||||||
|
|
||||||
// Line 16: Subtotal (calculated automatically)
|
// Line 16: Subtotal (calculated automatically)
|
||||||
$data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'vat_amount' => 0);
|
$data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'vat_amount' => 0);
|
||||||
print '<tr class="pair">';
|
print '<tr class="pair" style="background-color: #ffe6e6;">';
|
||||||
print '<td><strong>16</strong></td>';
|
print '<td><strong>16</strong></td>';
|
||||||
print '<td colspan="2"><strong>Sous-total TVA due (08 + 09 + 9B)</strong></td>';
|
print '<td colspan="2"><strong>Sous-total TVA due (08 + 09 + 9B)</strong></td>';
|
||||||
print '<td class="right"><strong>' . formatAmount($data['vat_amount']) . '</strong></td>';
|
print '<td class="right"><strong>' . formatAmount($data['vat_amount']) . '</strong></td>';
|
||||||
@ -303,7 +303,7 @@ foreach ($section_c_lines as $line) {
|
|||||||
|
|
||||||
// Line 23: Subtotal (calculated automatically)
|
// Line 23: Subtotal (calculated automatically)
|
||||||
$data = isset($ca3_data['23']) ? $ca3_data['23'] : array('line_label' => '', 'vat_amount' => 0);
|
$data = isset($ca3_data['23']) ? $ca3_data['23'] : array('line_label' => '', 'vat_amount' => 0);
|
||||||
print '<tr class="pair">';
|
print '<tr class="pair" style="background-color: #ffe6e6;">';
|
||||||
print '<td><strong>23</strong></td>';
|
print '<td><strong>23</strong></td>';
|
||||||
print '<td colspan="2"><strong>Sous-total TVA déductible (20 + 21 + 22)</strong></td>';
|
print '<td colspan="2"><strong>Sous-total TVA déductible (20 + 21 + 22)</strong></td>';
|
||||||
print '<td class="right"><strong>' . formatAmount($data['vat_amount']) . '</strong></td>';
|
print '<td class="right"><strong>' . formatAmount($data['vat_amount']) . '</strong></td>';
|
||||||
@ -331,7 +331,7 @@ foreach ($section_d_lines as $line) {
|
|||||||
$description = isset($ca3_definitions[$line]) ? $ca3_definitions[$line]['label'] : $data['line_label'];
|
$description = isset($ca3_definitions[$line]) ? $ca3_definitions[$line]['label'] : $data['line_label'];
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<tr>';
|
print '<tr style="background-color: #ffe6e6;">';
|
||||||
print '<td><strong>' . $line . '</strong></td>';
|
print '<td><strong>' . $line . '</strong></td>';
|
||||||
print '<td colspan="2">' . $description . '</td>';
|
print '<td colspan="2">' . $description . '</td>';
|
||||||
print '<td class="right">' . formatAmount($data['vat_amount']) . '</td>';
|
print '<td class="right">' . formatAmount($data['vat_amount']) . '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user