View | Details | Raw Unified | Return to bug 26438
Collapse All | Expand All

(-)a/Koha/EDI.pm (-7 / +6 lines)
Lines 738-745 sub quote_item { Link Here
738
            while ( $created < $order_quantity ) {
738
            while ( $created < $order_quantity ) {
739
                $item_hash->{biblionumber} = $bib->{biblionumber};
739
                $item_hash->{biblionumber} = $bib->{biblionumber};
740
                $item_hash->{biblioitemnumber} = $bib->{biblioitemnumber};
740
                $item_hash->{biblioitemnumber} = $bib->{biblioitemnumber};
741
                my $item = Koha::Item->new( $item_hash )->store;
741
                my $kitem = Koha::Item->new( $item_hash )->store;
742
                my $itemnumber = $item->itemnumber;
742
                my $itemnumber = $kitem->itemnumber;
743
                $logger->trace("Added item:$itemnumber");
743
                $logger->trace("Added item:$itemnumber");
744
                $schema->resultset('AqordersItem')->create(
744
                $schema->resultset('AqordersItem')->create(
745
                    {
745
                    {
Lines 830-837 sub quote_item { Link Here
830
830
831
                    $item_hash->{biblionumber} = $bib->{biblionumber};
831
                    $item_hash->{biblionumber} = $bib->{biblionumber};
832
                    $item_hash->{biblioitemnumber} = $bib->{biblioitemnumber};
832
                    $item_hash->{biblioitemnumber} = $bib->{biblioitemnumber};
833
                    my $item = Koha::Item->new( $item_hash )->store;
833
                    my $kitem = Koha::Item->new( $item_hash )->store;
834
                    my $itemnumber = $item->itemnumber;
834
                    my $itemnumber = $kitem->itemnumber;
835
                    $logger->trace("New item $itemnumber added");
835
                    $logger->trace("New item $itemnumber added");
836
                    $schema->resultset('AqordersItem')->create(
836
                    $schema->resultset('AqordersItem')->create(
837
                        {
837
                        {
Lines 900-907 sub quote_item { Link Here
900
                    };
900
                    };
901
                    $new_item->{biblionumber} = $bib->{biblionumber};
901
                    $new_item->{biblionumber} = $bib->{biblionumber};
902
                    $new_item->{biblioitemnumber} = $bib->{biblioitemnumber};
902
                    $new_item->{biblioitemnumber} = $bib->{biblioitemnumber};
903
                    my $item = Koha::Item->new( $new_item )->store;
903
                    my $kitem = Koha::Item->new( $new_item )->store;
904
                    my $itemnumber = $item->itemnumber;
904
                    my $itemnumber = $kitem->itemnumber;
905
                    $logger->trace("New item $itemnumber added");
905
                    $logger->trace("New item $itemnumber added");
906
                    $schema->resultset('AqordersItem')->create(
906
                    $schema->resultset('AqordersItem')->create(
907
                        {
907
                        {
908
- 

Return to bug 26438