Bug 23767: Include child funds in total spent and ordered on acqui-home
To test: 1 - Have three funds, two parents and one child 2 - Open a basket and add an order to each fund 3 - View acqui-home.pl 4 - Note that ordered values are only added from the two parent funds 5 - Complete these orders (close basket, receive) 6 - Note the spent only includes parent funds 7 - Place three more orders, one from each fund 8 - Now you can see both spent and ordered are incorrect 9 - Apply patch 10 - Reload, all should add correctly Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit07150a0a85) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit8c4eb57c17) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
5ed0f75765
commit
3cf367f50f
|
|
@ -142,20 +142,12 @@
|
|||
</td>
|
||||
<td class="data">
|
||||
<a href="ordered.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]">
|
||||
[% IF loop_budge.budget_parent_id %]
|
||||
[% loop_budge.budget_ordered | $Price %]
|
||||
[% ELSE %]
|
||||
<span class="total_amount">[% loop_budge.budget_ordered | $Price %]</span>
|
||||
[% END %]
|
||||
</a>
|
||||
</td>
|
||||
<td class="data">
|
||||
<a href="spent.pl?fund=[% loop_budge.budget_id | uri %]&fund_code=[% loop_budge.budget_code | uri %]">
|
||||
[% IF loop_budge.budget_parent_id %]
|
||||
[% loop_budge.budget_spent | $Price %]
|
||||
[% ELSE %]
|
||||
<span class="total_amount">[% loop_budge.budget_spent | $Price %]</span>
|
||||
[% END %]
|
||||
</a>
|
||||
</td>
|
||||
<td class="data">
|
||||
|
|
|
|||
Loading…
Reference in New Issue