Bug 26340: When printing labels from a barcode range, keep zero padding
authorIvan Dziuba <ivan.dziuba@inlibro.com>
Mon, 14 Jun 2021 18:41:14 +0000 (14:41 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Jul 2021 13:47:33 +0000 (15:47 +0200)
commita75bd018831562767eb92181015f4f63fdbe7f8b
tree47918c9fd5661b2b8d28900c45cda207722611e5
parente16b93b4fa8922d5d2abb75a517235c6a5cce1e8
Bug 26340: When printing labels from a barcode range, keep zero padding

TEST PLAN:

1. Go  Tools > Label creator
2. Click +New -> Barcode range
3. Print barcode range with zero(s) in the start (Ex. from 00011881 to 00012000 )
4. Select a template to be applied:: Code à barre 48467
Select a layout to be applied: Code à barres
5. Export
6. Open PDF

The prefix is not displayed. We should see 00011881 on the labels, but we see 11881, 11882, ... without zeros in the start of labels.
This patch fix it.

Signed-off-by: hakam <hakam@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-print.tt
labels/label-create-pdf.pl
labels/label-print.pl