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

(-)a/C4/Barcodes/ValueBuilder.pm (-1 / +1 lines)
Lines 89-95 sub get_barcode { Link Here
89
    my $nextnum;
89
    my $nextnum;
90
    my $query = "select max(cast( substring_index(barcode, '-',-1) as signed)) from items where barcode like ?";
90
    my $query = "select max(cast( substring_index(barcode, '-',-1) as signed)) from items where barcode like ?";
91
    my $sth=C4::Context->dbh->prepare($query);
91
    my $sth=C4::Context->dbh->prepare($query);
92
    $sth->execute("$args->{year}%");
92
    $sth->execute($args->{year} . '-%');
93
    while (my ($count)= $sth->fetchrow_array) {
93
    while (my ($count)= $sth->fetchrow_array) {
94
        warn "Examining Record: $count" if $DEBUG;
94
        warn "Examining Record: $count" if $DEBUG;
95
        $nextnum = $count if $count;
95
        $nextnum = $count if $count;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (-3 / +2 lines)
Lines 105-112 Cataloging: Link Here
105
            - pref: autoBarcode
105
            - pref: autoBarcode
106
              choices:
106
              choices:
107
                  incremental: generated in the form 1, 2, 3.
107
                  incremental: generated in the form 1, 2, 3.
108
                  annual: generated in the form <year>-0001, <year>-0002.
108
                  annual: generated in the form <year>-0001, <year>-0002.
109
                  hbyymmincr: generated in the form &lt;branchcode&gt;yymm0001.
109
                  hbyymmincr: generated in the form <branchcode>yymm0001.
110
                  EAN13: incremental EAN-13 barcodes
110
                  EAN13: incremental EAN-13 barcodes
111
                  "OFF": not generated automatically.
111
                  "OFF": not generated automatically.
112
        -
112
        -
113
- 

Return to bug 21937