Bugzilla – Attachment 74363 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), 1.49 KB, created by
Martin Renvoize (ashimema)
on 2018-04-17 16:18:48 UTC
(
hide
)
Description:
Bug 20595: Add handling for LRP field in EDI.
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-04-17 16:18:48 UTC
Size:
1.49 KB
patch
obsolete
>From c68405c0c9fd841fc099304c7c0a351da58d1e3c 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. >--- > Koha/EDI.pm | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/Koha/EDI.pm b/Koha/EDI.pm >index fcf352c6f8..479786f0fd 100644 >--- a/Koha/EDI.pm >+++ b/Koha/EDI.pm >@@ -776,6 +776,11 @@ sub quote_item { > itemnumber => $itemnumber, > } > ); >+ >+ if (my $lrp = $item->girfield( 'library_rotation_plan', $occurrence) ) { >+ my $rota = Koha::StockRotationRotas->find({ title => $lrp}, {key => 'stockrotationrotas_title'}); >+ $rota->add_item($itemnumber); >+ } > } > > ++$occurrence; >@@ -827,6 +832,11 @@ sub quote_item { > itemnumber => $itemnumber, > } > ); >+ >+ if (my $lrp = $item->girfield( 'library_rotation_plan', $occurrence) ) { >+ my $rota = Koha::StockRotationRotas->find({ title => $lrp}, {key => 'stockrotationrotas_title'}); >+ $rota->add_item($itemnumber); >+ } > } > > ++$occurrence; >-- >2.14.2
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