Bugzilla – Attachment 78702 Details for
Bug 15184
Ability to duplicate existing order lines to a given basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15184: Add POD
Bug-15184-Add-POD.patch (text/plain), 1.90 KB, created by
Jonathan Druart
on 2018-09-14 19:00:50 UTC
(
hide
)
Description:
Bug 15184: Add POD
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-09-14 19:00:50 UTC
Size:
1.90 KB
patch
obsolete
>From 4d7e84c5a999faac40e376278b75632d16dab71c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Aug 2018 15:06:42 -0300 >Subject: [PATCH] Bug 15184: Add POD > >--- > Koha/Acquisition/Order.pm | 34 ++++++++++++++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > >diff --git a/Koha/Acquisition/Order.pm b/Koha/Acquisition/Order.pm >index e0ad79ef6b..9c0077fd9b 100644 >--- a/Koha/Acquisition/Order.pm >+++ b/Koha/Acquisition/Order.pm >@@ -111,6 +111,14 @@ sub add_item { > $rs->create({ ordernumber => $self->ordernumber, itemnumber => $itemnumber }); > } > >+=head3 add_user >+ >+ $order->add_user( $borrowernumber ); >+ >+Link an user to this order. >+ >+=cut >+ > sub add_user { > my ( $self, $borrowernumber ) = @_; > >@@ -177,6 +185,14 @@ sub subscription { > return Koha::Subscription->_new_from_dbic( $subscription_rs ); > } > >+=head3 items >+ >+ my $items = $order->items >+ >+Returns the items associated to the order. >+ >+=cut >+ > sub items { > my ( $self ) = @_; > # aqorders_items is not a join table >@@ -186,6 +202,14 @@ sub items { > return Koha::Items->search({ itemnumber => \@itemnumbers }); > } > >+=head3 users >+ >+ my $patrons = $order->users >+ >+Returns the users (Koha::Patrons) that are in the basket users list >+ >+=cut >+ > sub users { > my ( $self ) = @_; > my $users_rs = $self->_result->aqorder_users; >@@ -193,6 +217,16 @@ sub users { > return Koha::Patrons->search({ borrowernumber=> \@borrowernumbers }); > } > >+=head3 duplicate_to >+ >+ my $duplicated_order = $order->duplicate_to($basket, [$default_values]); >+ >+Duplicate an existing order and attach it to a basket. $default_values can be specified as a hashref >+that contain default values for the different order's attributes. >+Items will be duplicated as well but barcodes will be set to null. >+ >+=cut >+ > sub duplicate_to { > my ( $self, $basket, $default_values ) = @_; > my $new_order; >-- >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 15184
:
77314
|
77315
|
77316
|
77317
|
77318
|
77513
|
77514
|
77515
|
77516
|
77517
|
77966
|
77967
|
77968
|
77969
|
77970
|
78074
|
78075
|
78076
|
78077
|
78078
|
78277
|
78278
|
78279
|
78280
|
78281
|
78282
|
78283
|
78284
|
78285
|
78340
|
78535
|
78536
|
78537
|
78538
|
78539
|
78697
|
78698
|
78699
|
78700
|
78701
|
78702
|
78703
|
78704
|
78705
|
78706
|
78898
|
78911
|
78927
|
78958
|
78959
|
78960
|
78961
|
78962
|
78963
|
78964
|
78965
|
78966
|
78967
|
78968
|
78969
|
78970
|
80485
|
80486
|
80487
|
80488
|
80489
|
80490
|
80491
|
80492
|
80493
|
80494
|
80495
|
80638
|
81435
|
81436
|
81437
|
81438
|
81439
|
81440
|
81441
|
81442
|
81443
|
81444
|
81445
|
81446
|
81447
|
81448
|
82079