]> git.koha-community.org Git - koha.git/commit
Bug 10028: fix how ModReceiveOrder() calls NewOrder()
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 11 Apr 2013 10:00:45 +0000 (12:00 +0200)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sat, 14 Sep 2013 22:18:23 +0000 (19:18 -0300)
commit805849e33e190416545cae9cfc4e690190765627
tree20b670a6dd8d86ef8f0b08171deafcfdc834941d
parent23bb4bcb002ef0c79979597a33c1de9ffdf46eab
Bug 10028: fix how ModReceiveOrder() calls NewOrder()

In C4::Acquisition::ModReceiveOrder, a call to NewOrder is badly used.

NewOrder returns ($basketno, $ordernumber) but in ModReceiveOrder the
ordernumber is got with
  my $ordernumber = NewOrder( $args );

It works because:
sub t{
    return ("a", "b");
}
my $a = t();
say $a;

Will display 'b'.

But it is not really clear.

Test plan:
Check that there is no regression for partial receives.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 29689de399a8927547c36e53461c7766ecc604f0)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 27f96f606c90f85756b290e1a832377f5465bf40)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 27f96f606c90f85756b290e1a832377f5465bf40)
C4/Acquisition.pm