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

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

Return to bug 22098