Bug 21937: Add test to show autoBarcode annual increment bug
authorFrédéric Demians <f.demians@tamil.fr>
Mon, 3 Dec 2018 17:27:08 +0000 (18:27 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 26 Apr 2019 14:33:01 +0000 (15:33 +0100)
commita85edfb2be449cf65691d1e4b32080310ac7aad2
treeb87947f91e79483762e980750da6ce1d31158d98
parent4852f974f53886e8d7f771107eccc93dca3e0c99
Bug 21937: Add test to show autoBarcode annual increment bug

This patch show the issue. If the DB contains a barcode (not auto attributed
by Koha) which begin with the year used to generate automatically a new one,
there may be a 'collision'.

prove -v t/db_dependent/Barcodes_ValueBuilder.t

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7262bc066784247b12ce7f25c390498086e1d72b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Barcodes_ValueBuilder.t