[Koha-bugs] [Bug 32819] Fix cataloguing/value_builder/stocknumberam123.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Feb 8 20:52:30 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32819
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
--- Comment #3 from David Nind <david at davidnind.com> ---
Testing notes (using KTD):
1. Added stocknumberam123.pl as a plugin to 952$i for the BKS framework
(MARC21).
2. Adding an inventory number with a prefix:
2.1 Add "PREFIX 0009678570" to an item for a record
2.3 Add "PREFIX" to another item for a different record
2.4 Click the three dots
==> Incremented and PREFIX 0009678571 added to the item
3. Adding a numerical inventory number:
3.1 Add 0009000000 to an item for a record
3.2 For another item for another record without a 952$i value, click the
three dots
==> Number incremented and 0009000001 added to the item
Description of plugin
~~~~~~~~~~~~~~~~~~~~~
This plugin is specific to AM123 but could be used as a base for similar
operations.
It is used for stocknumber computation.
If the user send an empty string, we return a simple incremented stocknumber.
If a prefix is submited, we look for the highest stocknumber with this prefix,
and return it incremented.
In this case, a stocknumber has this form : "PREFIX 0009678570".
- PREFIX is an upercase word
- a space separator
- 10 digits, with leading 0s if needed
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list