Bug 12992: Fund planning should display actual values

The 'show_actual' variable is not correctly manage in the template.
This has certainly been introduced by the migration to TT.

Test plan:
1/ Go on a bugdet planning view (admin/aqplan.pl)
2/ Check the "Show actual/estimated values" checkbox on the left
(Filters box)
3/ Go
4/ Verify the actual values are now displayed (i.e. the columns contain
2 values).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Jonathan Druart 2014-09-25 09:38:25 +02:00 committed by Tomas Cohen Arazi
parent 13fda83783
commit 3b584f8f71

View file

@ -147,7 +147,7 @@
[% END %]
<table class="invis">
<tr>
[% IF ( line.show_actual ) %]
[% IF show_actual %]
<td >[% line.actual_amount %]</td>
[% END %]
<td>
@ -167,7 +167,7 @@
<td>
<table class="invis">
<tr>
[% IF ( budget_line.show_actual ) %]
[% IF show_actual %]
[% IF ( budget_line.act_negative ) %]
<td style="color: red;">
[% ELSIF ( budget_line.act_positive ) %]