@@ -, +, @@ as hash 1) Go to "Administration->System preferences" and change 2) Now, go to "Acquisitions" and create a new Vendor, 3) Next, go to "Administration->EDI Account" and add EDI account 4) Also in "Administration->Library EANs" add EAN if you didn't 5) Go back to "Acquisitions" and add a new basket to your Vendor 6) Press "Create EDIFACT order" button. It should throw 7) Apply the patch. 8) Reload the page that threw software error previously --- Koha/Edifact/Order.pm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) --- a/Koha/Edifact/Order.pm +++ a/Koha/Edifact/Order.pm @@ -385,14 +385,19 @@ sub order_line { foreach my $item (@linked_itemnumbers) { my $i_obj = $schema->resultset('Item')->find( $item->itemnumber ); if ( defined $i_obj ) { - push @items, $i_obj; + push @items, { + branchcode => $i_obj->homebranch->branchcode, + itype => $i_obj->itype, + location => $i_obj->location, + itemcallnumber => $i_obj->itemcallnumber, + }; } } } else { my $item_hash = { - itemtype => $biblioitem->itemtype, - shelfmark => $biblioitem->cn_class, + itype => $biblioitem->itemtype, + itemcallnumber => $biblioitem->cn_class, }; my $branch = $orderline->basketno->deliveryplace; if ($branch) { @@ -411,10 +416,10 @@ sub order_line { for my $item (@items) { push @{$item_fields}, { - branchcode => $item->homebranch->branchcode, - itype => $item->itype, - location => $item->location, - itemcallnumber => $item->itemcallnumber, + branchcode => $item->{branchcode}, + itype => $item->{itype}, + location => $item->{location}, + itemcallnumber => $item->{itemcallnumber}, }; } $self->add_seg( --