]> git.koha-community.org Git - koha.git/commit
Bug 5213 - Suffix number sequence not resetting properly in hmyymmincr barcode autoge...
authorChris Nighswonger <cnighswonger@foundations.edu>
Tue, 5 Apr 2011 09:50:48 +0000 (11:50 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 17:18:06 +0000 (13:18 -0400)
commit1d9af3b9ed250cbd60df852eb90bf26ce5a3dd8b
treea07306cab07b84b0155209f1b40090797d0d0329
parent7ab229554b881feb5409137f8015aba30227cf4e
Bug 5213 - Suffix number sequence not resetting properly in hmyymmincr barcode autogen pattern

Two things are happening.

First, the SELECT does not account for a branchcode greater than 2 chars.

This is fixed by just selecting the final four digits representing the
incremental suffix from the barcode field.

Second, the incremental suffix (4 digits) is not rolling back over to zero when
reaching 9999.

This pattern probably needs help. It should allow for cataloging of 10000 items
per month as is. I would not recommend doing barcode numbering this way, but
need to support it since it is in use in at least one library.

This patch also impliments strict and warnings per Bug 2505

Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 8ca5d5ff85c429ee972b3f80f91f5b27a58cf5d5)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
cataloguing/value_builder/barcode.pl