[Koha-bugs] [Bug 32820] Fix cataloguing/value_builder/stocknumberAV.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 9 22:31:55 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32820

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com
             Status|Needs Signoff               |Failed QA

--- Comment #2 from David Nind <david at davidnind.com> ---
This works, but similar to bug 32814 when I click on the three dots it jumps to
the top of the screen.

It does this when using an authorized value term and just a numerical value.

It didn't do this before the patch was applied (and after a flush_memcached and
restart_all).

How I tested
~~~~~~~~~~~~

1. Add the stocknumberAV.pl plugin to 952$i
2. Add a new authorized valued category called INVENTORY
3. Add some new authorized value, for example: TEST, TEST1
4. Adding an inventory number with a prefix from the INVENTORY authorized
values:
   4.1 Enter "TEST" to an item for a record
   4.2 Click the three dots
       ==> A number should be added, for example: TEST 0000000001
   4.3 Repeat for another item using the same authorized value
       ==> This should increment, for example: TEST 0000000002
5. Adding a numerical inventory number:
   5.1 Add a numerical number without a prefix to an item for a record, for
example: 98765
   5.2 Click the three dots
   ==> There should be no change (as expected)


Description of plugin
~~~~~~~~~~~~~~~~~~~~~

This plugin is based on authorised values from INVENTORY.
It is used for stocknumber computation.

If no prefix is submitted, or the prefix does contain only
numbers, it returns the inserted code (= keep the field unchanged).

If a prefix is submitted, we look for the highest stocknumber
with this prefix and return it incremented.

In this case, a stocknumber has this form (e.g. "PREFIX 0009678570"):
PREFIX containing letters, a space separator and 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