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

(-)a/cataloguing/value_builder/stocknumberAV.pl (-8 / +7 lines)
Lines 28-45 use Koha::AuthorisedValues; Link Here
28
28
29
=head1 DESCRIPTION
29
=head1 DESCRIPTION
30
30
31
This plugin is based on authorised values INVENTORY.
31
This plugin is based on authorised values from INVENTORY.
32
It is used for stocknumber computation.
32
It is used for stocknumber computation.
33
33
34
If no prefix is submitted, or prefix does not contain only
34
If no prefix is submitted, or the prefix does contain only
35
numbers, it returns the inserted code (= keep a field unchanged)
35
numbers, it returns the inserted code (= keep the field unchanged).
36
36
37
If a prefix is submited, we look for the highest stocknumber
37
If a prefix is submitted, we look for the highest stocknumber
38
with this prefix, and return it incremented.
38
with this prefix and return it incremented.
39
39
40
In this case, a stocknumber has this form (e.g. "PREFIX 0009678570"):
40
In this case, a stocknumber has this form (e.g. "PREFIX 0009678570"):
41
PREFIX containing letters, a space separator, and
41
PREFIX containing letters, a space separator and 10 digits with leading
42
10 digits with leading 0s if needed
42
0s if needed.
43
43
44
=cut
44
=cut
45
45
46
- 

Return to bug 22098