|
Link Here
|
| 77 |
|
77 |
|
| 78 |
if ( $op eq 'add_form' ) { |
78 |
if ( $op eq 'add_form' ) { |
| 79 |
my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); |
79 |
my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); |
| 80 |
my $contracts = $bookseller->contracts->search( { contractenddate => { '>=' => \'now()' } } ); |
80 |
my $basket; |
| 81 |
|
|
|
| 82 |
if ($basketno) { |
81 |
if ($basketno) { |
| 83 |
|
82 |
|
| 84 |
#this is an edit |
83 |
#this is an edit |
| 85 |
my $basket = Koha::Acquisition::Baskets->find($basketno); |
84 |
$basket = Koha::Acquisition::Baskets->find($basketno); |
| 86 |
|
85 |
|
| 87 |
$template->param( basket => $basket ); |
86 |
$template->param( basket => $basket ); |
| 88 |
$template->param( additional_field_values => |
87 |
$template->param( additional_field_values => |
| 89 |
Koha::Acquisition::Baskets->find($basketno)->get_additional_field_values_for_template ); |
88 |
Koha::Acquisition::Baskets->find($basketno)->get_additional_field_values_for_template ); |
| 90 |
} |
89 |
} |
| 91 |
|
90 |
|
|
|
91 |
my $contracts = $bookseller->contracts->search( |
| 92 |
[ |
| 93 |
{ contractenddate => { '>=' => \'now()' } }, |
| 94 |
{ $basket ? ( contractnumber => $basket->contractnumber ) : () } |
| 95 |
] |
| 96 |
); |
| 97 |
|
| 92 |
# Check if basket name should be read-only (EDI-generated with PO number setting) |
98 |
# Check if basket name should be read-only (EDI-generated with PO number setting) |
| 93 |
my $basket_name_readonly = 0; |
99 |
my $basket_name_readonly = 0; |
| 94 |
if ( $basketno && $basket ) { |
100 |
if ( $basketno && $basket ) { |
| 95 |
- |
|
|