|
Lines 87-101
if ($line and $column) {
Link Here
|
| 87 |
|
87 |
|
| 88 |
my $display_values = {}; |
88 |
my $display_values = {}; |
| 89 |
|
89 |
|
| 90 |
$display_values->{status} = { |
|
|
| 91 |
ACCEPTED => gettext('Accepted'), |
| 92 |
ASKED => gettext('Pending'), |
| 93 |
AVAILABLE => gettext('Available'), |
| 94 |
CHECKED => gettext('Checked'), |
| 95 |
ORDERED => gettext('Ordered'), |
| 96 |
REJECTED => gettext('Rejected'), |
| 97 |
}; |
| 98 |
|
| 99 |
my $budgets = C4::Budgets::GetBudgets; |
90 |
my $budgets = C4::Budgets::GetBudgets; |
| 100 |
foreach my $budget (@$budgets) { |
91 |
foreach my $budget (@$budgets) { |
| 101 |
my $budget_id = $budget->{budget_id}; |
92 |
my $budget_id = $budget->{budget_id}; |
|
Lines 167-173
sub calculate {
Link Here
|
| 167 |
my ($line, $column, $groupby, $filters) = @_; |
158 |
my ($line, $column, $groupby, $filters) = @_; |
| 168 |
|
159 |
|
| 169 |
my @valid_fields = (qw( |
160 |
my @valid_fields = (qw( |
| 170 |
suggesteddate rejecteddate ordereddate publicationyear status budgetid |
161 |
suggesteddate rejecteddate ordereddate copyrightdate status budgetid |
| 171 |
categorycode sort1 sort2 branchcode reason itemtype |
162 |
categorycode sort1 sort2 branchcode reason itemtype |
| 172 |
)); |
163 |
)); |
| 173 |
return unless (grep /^$line$/, @valid_fields); |
164 |
return unless (grep /^$line$/, @valid_fields); |
|
Lines 208-220
sub calculate {
Link Here
|
| 208 |
} |
199 |
} |
| 209 |
} |
200 |
} |
| 210 |
|
201 |
|
| 211 |
if ($filters->{publicationyear_from}) { |
202 |
if ($filters->{copyrightdate_from}) { |
| 212 |
push @conditions, 'publicationyear >= ?'; |
203 |
push @conditions, 'copyrightdate >= ?'; |
| 213 |
push @bind_values, $filters->{publicationyear_from}; |
204 |
push @bind_values, $filters->{copyrightdate_from}; |
| 214 |
} |
205 |
} |
| 215 |
if ($filters->{publicationyear_to}) { |
206 |
if ($filters->{copyrightdate_to}) { |
| 216 |
push @conditions, 'publicationyear <= ?'; |
207 |
push @conditions, 'copyrightdate <= ?'; |
| 217 |
push @bind_values, $filters->{publicationyear_to}; |
208 |
push @bind_values, $filters->{copyrightdate_to}; |
| 218 |
} |
209 |
} |
| 219 |
|
210 |
|
| 220 |
if ($filters->{budgetid}) { |
211 |
if ($filters->{budgetid}) { |