Bugzilla – Attachment 93948 Details for
Bug 20595
EDI: Add support for LRP (Library Rotation Plan) for Koha with Stock Rotation enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20595: Add handling for LRP field in EDI
Bug-20595-Add-handling-for-LRP-field-in-EDI.patch (text/plain), 2.47 KB, created by
Katrin Fischer
on 2019-10-10 05:59:56 UTC
(
hide
)
Description:
Bug 20595: Add handling for LRP field in EDI
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-10-10 05:59:56 UTC
Size:
2.47 KB
patch
obsolete
>From a8f2ae5c9999e9085c48285b550e4bbf0a4c5222 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 17 Apr 2018 17:16:58 +0100 >Subject: [PATCH] Bug 20595: Add handling for LRP field in EDI > >* EDI.pm - Add handling of the LRP EDI field to automatically add an >item to a stockrotation rota. > >Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/EDI.pm | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > >diff --git a/Koha/EDI.pm b/Koha/EDI.pm >index 54edf00aa7..5715c610d5 100644 >--- a/Koha/EDI.pm >+++ b/Koha/EDI.pm >@@ -790,6 +790,22 @@ sub quote_item { > itemnumber => $itemnumber, > } > ); >+ >+ my $lrp = >+ $item->girfield( 'library_rotation_plan', $occurrence ); >+ if ($lrp) { >+ my $rota = >+ Koha::StockRotationRotas->find( { title => $lrp }, >+ { key => 'stockrotationrotas_title' } ); >+ if ($rota) { >+ $rota->add_item($itemnumber); >+ $logger->trace("Item added to rota $rota->id"); >+ } >+ else { >+ $logger->error( >+ "No rota found matching $lrp in orderline"); >+ } >+ } > } > > ++$occurrence; >@@ -843,6 +859,22 @@ sub quote_item { > itemnumber => $itemnumber, > } > ); >+ >+ my $lrp = >+ $item->girfield( 'library_rotation_plan', $occurrence ); >+ if ($lrp) { >+ my $rota = >+ Koha::StockRotationRotas->find( { title => $lrp }, >+ { key => 'stockrotationrotas_title' } ); >+ if ($rota) { >+ $rota->add_item($itemnumber); >+ $logger->trace("Item added to rota $rota->id"); >+ } >+ else { >+ $logger->error( >+ "No rota found matching $lrp in orderline"); >+ } >+ } > } > > ++$occurrence; >-- >2.11.0
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 20595
:
74363
|
74452
|
74453
|
74455
|
74471
|
93718
| 93948