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

(-)a/acqui/neworderempty.pl (+4 lines)
Lines 333-338 if (C4::Context->preference('AcqCreateItem') eq 'ordering' && !$ordernumber) { Link Here
333
my @itemtypes;
333
my @itemtypes;
334
@itemtypes = C4::ItemType->all unless C4::Context->preference('item-level_itypes');
334
@itemtypes = C4::ItemType->all unless C4::Context->preference('item-level_itypes');
335
335
336
# Find the items.barcode subfield for barcode validations
337
my (undef, $barcode_subfield) = GetMarcFromKohaField('items.barcode', '');
338
336
# fill template
339
# fill template
337
$template->param(
340
$template->param(
338
    close        => $close,
341
    close        => $close,
Lines 385-390 $template->param( Link Here
385
    ecost            => $data->{'ecost'},
388
    ecost            => $data->{'ecost'},
386
    notes            => $data->{'notes'},
389
    notes            => $data->{'notes'},
387
    publishercode    => $data->{'publishercode'},
390
    publishercode    => $data->{'publishercode'},
391
    barcode_subfield => $barcode_subfield,
388
    
392
    
389
    import_batch_id  => $import_batch_id,
393
    import_batch_id  => $import_batch_id,
390
394
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt (-2 / +1 lines)
Lines 53-59 function Check(ff) { Link Here
53
            if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
53
            if (ff.field_value[i].value.length == 0 && ff.mandatory[i].value == 1) {
54
                empty_item_mandatory++;
54
                empty_item_mandatory++;
55
            }
55
            }
56
            if(ff.subfield[i].value === 'p' && ff.field_value[i].value.length != 0) {
56
            if(ff.subfield[i].value === '[% barcode_subfield %]' && ff.field_value[i].value.length != 0) {
57
                barcodes.push(ff.field_value[i].value);
57
                barcodes.push(ff.field_value[i].value);
58
            }
58
            }
59
        }
59
        }
60
- 

Return to bug 6963