Bugzilla – Attachment 181586 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.58 KB, created by
Jonathan Druart
on 2025-04-28 10:41:15 UTC
(
hide
)
Description:
Bug 39711: (bugfix) Show contract of the basket if inactive
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-04-28 10:41:15 UTC
Size:
1.58 KB
patch
obsolete
>From 8860a17bdec7de2b178cee0e0213c70bbd5e49e6 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 0b43cfc5e3a..d6ee1e24b7b 100755 >--- a/acqui/basketheader.pl >+++ b/acqui/basketheader.pl >@@ -76,18 +76,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 ) : () } >+ ] >+ ); >+ > $template->param( > add_form => 1, > vendor => $bookseller, >-- >2.34.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