Add original amounts formatting to lines 16, 17, and 23
Fixed: - Line 16: Subtotal TVA due (08 + 09 + 9B) now shows original amounts in brackets - Line 17: Manual entry line now shows original amounts in brackets - Line 23: Subtotal TVA déductible (20 + 21 + 22) now shows original amounts in brackets - All subtotal and manual entry lines now have consistent formatting - Original amounts visible for transparency in all calculated lines
This commit is contained in:
parent
b3f2ac492f
commit
06b868d71e
@ -199,7 +199,7 @@ $data = isset($ca3_data['16']) ? $ca3_data['16'] : array('line_label' => '', 'va
|
||||
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 '<td class="right"><strong>' . formatAmountWithOriginal($data['vat_amount'], $data['line_label']) . '</strong></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Reset to normal layout for line 17
|
||||
@ -214,7 +214,7 @@ $description = isset($ca3_definitions['17']) ? $ca3_definitions['17']['label'] :
|
||||
print '<tr>';
|
||||
print '<td>17</td>';
|
||||
print '<td colspan="2">' . $description . '</td>';
|
||||
print '<td class="right">' . price($data['vat_amount']) . '</td>';
|
||||
print '<td class="right">' . formatAmountWithOriginal($data['vat_amount'], $data['line_label']) . '</td>';
|
||||
print '</tr>';
|
||||
|
||||
// Section C: TVA déductible
|
||||
@ -244,7 +244,7 @@ $data = isset($ca3_data['23']) ? $ca3_data['23'] : array('line_label' => '', 'va
|
||||
print '<tr class="pair">';
|
||||
print '<td><strong>23</strong></td>';
|
||||
print '<td colspan="2"><strong>Sous-total TVA déductible (20 + 21 + 22)</strong></td>';
|
||||
print '<td class="right"><strong>' . price($data['vat_amount']) . '</strong></td>';
|
||||
print '<td class="right"><strong>' . formatAmountWithOriginal($data['vat_amount'], $data['line_label']) . '</strong></td>';
|
||||
print '</tr>';
|
||||
|
||||
// Section D: Résultat
|
||||
|
||||
Loading…
Reference in New Issue
Block a user