Bug 28223: Add data elements to negative budgets

To test:
1 - Have a parent fund and a child fund
2 - Order an amount from the child fund that is greater than the amount available
3 - Browse to acquisitions
4 - Confirm the totals look right
5 - Click on the over spent fund to go to 'Funds for main budget'
6 - Note the totals are incorrect
7 - Apply patch
8 - Reload
9 - Totals are now correct

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Nick Clemens 2021-04-26 12:40:48 +00:00 committed by Jonathan Druart
parent 0140f1e626
commit 92f69a0193

View file

@ -194,7 +194,7 @@
[% IF (value > 0) %] [% IF (value > 0) %]
<span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]" style="color: green;"> <span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]" style="color: green;">
[% ELSIF (value < 0) %] [% ELSIF (value < 0) %]
<span class="total_amount" style="color: red;"> <span class="total_amount" data-parent_id="[% budget.budget_parent_id | html %]" data-self_id="[% budget.budget_id | html %]" style="color: red;">
[% ELSE %] [% ELSE %]
<span class="totalamount"> <span class="totalamount">
[% END %] [% END %]