Bugzilla – Attachment 189405 Details for
Bug 39711
Migrate C4::Contract to object classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39711: (bugfix) Show contract of the basket if inactive
Bug-39711-bugfix-Show-contract-of-the-basket-if-in.patch (text/plain), 1.65 KB, created by
Matt Blenkinsop
on 2025-11-10 13:22:05 UTC
(
hide
)
Description:
Bug 39711: (bugfix) Show contract of the basket if inactive
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-11-10 13:22:05 UTC
Size:
1.65 KB
patch
obsolete
>From 8acd4493acfa51791b5a827ebf1829010283e771 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 28 Apr 2025 12:37:26 +0200 >Subject: [PATCH] Bug 39711: (bugfix) Show contract of the basket if inactive > >If the contract is inactive it should be displayed on the basket edit >view. >--- > acqui/basketheader.pl | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > >diff --git a/acqui/basketheader.pl b/acqui/basketheader.pl >index 65b5752a093..1fb22ba6f94 100755 >--- a/acqui/basketheader.pl >+++ b/acqui/basketheader.pl >@@ -77,18 +77,24 @@ $template->param( available_additional_fields => Koha::AdditionalFields->search( > > if ( $op eq 'add_form' ) { > my $bookseller = Koha::Acquisition::Booksellers->find($booksellerid); >- my $contracts = $bookseller->contracts->search( { contractenddate => { '>=' => \'now()' } } ); >- >+ my $basket; > if ($basketno) { > > #this is an edit >- my $basket = Koha::Acquisition::Baskets->find($basketno); >+ $basket = Koha::Acquisition::Baskets->find($basketno); > > $template->param( basket => $basket ); > $template->param( additional_field_values => > Koha::Acquisition::Baskets->find($basketno)->get_additional_field_values_for_template ); > } > >+ my $contracts = $bookseller->contracts->search( >+ [ >+ { contractenddate => { '>=' => \'now()' } }, >+ { $basket ? ( contractnumber => $basket->contractnumber ) : () } >+ ] >+ ); >+ > # Check if basket name should be read-only (EDI-generated with PO number setting) > my $basket_name_readonly = 0; > if ( $basketno && $basket ) { >-- >2.50.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39711
:
181453
|
181454
|
181455
|
181456
|
181457
|
181458
|
181459
|
181460
|
181461
|
181580
|
181581
|
181582
|
181583
|
181584
|
181586
|
181587
|
181588
|
189393
|
189394
|
189395
|
189396
|
189397
|
189398
|
189399
|
189400
|
189401
|
189402
|
189403
|
189404
| 189405 |
189406
|
189407