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>
(cherry picked from commit
a85edfb2be449cf65691d1e4b32080310ac7aad2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
my $item_3 = $builder->build({
source => 'Item',
value => {
+ barcode => '201200345'
+ }
+});
+my $item_4 = $builder->build({
+ source => 'Item',
+ value => {
barcode => '2012-0034'
}
});