Bug 14649: Fix regression - display fund name on budget planning
A patch from bug 11714 removes 'budget_name_indent', which was useless.
The script and the template should use the budget_name value.
Note that this patch impacts the CSV export, which does not work, so it cannot be
tested.
Test plan:
Edit a fund and click on one of the Planning value (by months, etc.)
The "Fund name" column should be correctly populated with the fund
names.
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e0ed9cbcf6)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
This commit is contained in:
parent
6648417079
commit
3f866a732e
|
|
@ -373,7 +373,7 @@ foreach my $budget (@budgets) {
|
|||
|
||||
%budget_line = (
|
||||
lines => \@cells_line,
|
||||
budget_name_indent => $budget->{budget_name_indent},
|
||||
budget_name => $budget->{budget_name},
|
||||
budget_amount => $budget->{budget_amount},
|
||||
budget_alloc => $budget->{budget_alloc},
|
||||
budget_act_remain => sprintf( "%.2f", $budget_act_remain ),
|
||||
|
|
@ -449,8 +449,7 @@ sub _print_to_csv {
|
|||
print "$str\n";
|
||||
|
||||
foreach my $row (@$results) {
|
||||
$row->{'budget_name_indent'} =~ s/ / /g;
|
||||
my @col = ( $row->{'budget_name_indent'}, $row->{'budget_amount'} );
|
||||
my @col = ( $row->{'budget_name'}, $row->{'budget_amount'} );
|
||||
my $l = $row->{'lines'};
|
||||
foreach my $line (@$l) {
|
||||
push @col, $line->{'estimated_amount'};
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
[% ELSE %]
|
||||
<td>
|
||||
[% END %]
|
||||
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name_indent %]</a></td>
|
||||
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name %]</a></td>
|
||||
<td><span id="[% budget_line.budget_amount %]">[% budget_line.budget_amount | $Price %] </span>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue