|
Link Here
|
| 76 |
|
76 |
|
| 77 |
if ( $op eq 'add_form' ) { |
77 |
if ( $op eq 'add_form' ) { |
| 78 |
my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); |
78 |
my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); |
| 79 |
my $contracts = $bookseller->contracts->search( { contractenddate => { '>=' => \'now()' } } ); |
79 |
my $basket; |
| 80 |
|
|
|
| 81 |
if ($basketno) { |
80 |
if ($basketno) { |
| 82 |
|
81 |
|
| 83 |
#this is an edit |
82 |
#this is an edit |
| 84 |
my $basket = Koha::Acquisition::Baskets->find($basketno); |
83 |
$basket = Koha::Acquisition::Baskets->find($basketno); |
| 85 |
|
84 |
|
| 86 |
$template->param( basket => $basket ); |
85 |
$template->param( basket => $basket ); |
| 87 |
$template->param( additional_field_values => |
86 |
$template->param( additional_field_values => |
| 88 |
Koha::Acquisition::Baskets->find($basketno)->get_additional_field_values_for_template ); |
87 |
Koha::Acquisition::Baskets->find($basketno)->get_additional_field_values_for_template ); |
| 89 |
} |
88 |
} |
| 90 |
|
89 |
|
|
|
90 |
my $contracts = $bookseller->contracts->search( |
| 91 |
[ |
| 92 |
{ contractenddate => { '>=' => \'now()' } }, |
| 93 |
{ $basket ? ( contractnumber => $basket->contractnumber ) : () } |
| 94 |
] |
| 95 |
); |
| 96 |
|
| 91 |
$template->param( |
97 |
$template->param( |
| 92 |
add_form => 1, |
98 |
add_form => 1, |
| 93 |
vendor => $bookseller, |
99 |
vendor => $bookseller, |
| 94 |
- |
|
|