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

(-)a/acqui/addorderiso2709.pl (-4 / +6 lines)
Lines 576-592 sub import_biblios_list { Link Here
576
        }
576
        }
577
        push @list, \%cellrecord;
577
        push @list, \%cellrecord;
578
578
579
        # If MarcItemFieldsToOrder is not set, we use MarcFieldsToOrder to populate the order form.
579
        if ($alliteminfos == -1 || scalar(@$alliteminfos) == 0) {
580
        if ($alliteminfos == -1 || scalar(@$alliteminfos) == 0) {
580
            $cellrecord{price} = $price || '';
581
            $cellrecord{price} = $price || '';
581
            $cellrecord{replacementprice} = $replacementprice || '';
582
            $cellrecord{replacementprice} = $replacementprice || '';
582
            $cellrecord{quantity} = $quantity || '';
583
            $cellrecord{quantity} = $quantity || '';
583
            $cellrecord{budget_id} = $budget_id || '';
584
            $cellrecord{budget_id} = $budget_id || '';
584
            $cellrecord{discount} = $discount || '';
585
            $cellrecord{sort1} = $sort1 || '';
586
            $cellrecord{sort2} = $sort2 || '';
587
        } else {
585
        } else {
586
            # When using MarcItemFields to order we want the order to have the same quantity as total items
588
            $cellrecord{quantity} = $all_items_quantity;
587
            $cellrecord{quantity} = $all_items_quantity;
589
        }
588
        }
589
        # The fields discount, sort1, and sort2 only exist at the order level, so always use MarcItemFieldsToOrder
590
        $cellrecord{discount} = $discount || '';
591
        $cellrecord{sort1} = $sort1 || '';
592
        $cellrecord{sort2} = $sort2 || '';
590
593
591
    }
594
    }
592
    my $num_records = $batch->{'num_records'};
595
    my $num_records = $batch->{'num_records'};
593
- 

Return to bug 34645