From b07b7876947be9a264557f8255132f3cfd5915c6 Mon Sep 17 00:00:00 2001 From: Ivan Dziuba Date: Tue, 1 Sep 2020 10:27:54 -0400 Subject: [PATCH] Bug 26340: Keep zero padding when printing barcodes from a range MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When creating barcode labels from a range, the leading zeros of padded barcodes will be removed. They should be kept instead. TO TEST: 1. Go to 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. 7. Apply patch and retest - the zeros should be kept now. Signed-off-by: David Nind --- .../prog/en/modules/labels/label-edit-range.tt | 25 ++++++++++++---------- .../prog/en/modules/labels/label-print.tt | 7 +++--- labels/label-create-pdf.pl | 14 +++++++++++- labels/label-print.pl | 24 +++++++++++++++------ 4 files changed, 48 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt index 4a5bc5a7e4..7b43aa7111 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-range.tt @@ -54,8 +54,8 @@