Currently, build_sample_item is hardcoded to always produce a random barcode.. for acquisitions tests we may wish to define a barcode or even ensure we can pass an undefined one.
Created attachment 85472 [details] [review] Bug 22392: Allow barcode to be passed to build_sample_item Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Created attachment 85477 [details] [review] Bug 22392: Allow barcode to be passed to build_sample_item Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 85478 [details] [review] Bug 22392: Reuse existing pattern Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 85652 [details] [review] Bug 22392: Allow barcode to be passed to build_sample_item Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 85653 [details] [review] Bug 22392: Reuse existing pattern Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Awesome work all! Pushed to master for 19.05
Enhancement not backported to 18.11.x series