From e3da610732bb2eb3c64160fbe9f86b5d467eb35a 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 Bug 26340: (QA follow-up) Rephrase hint on to and from values Bug 26340: Keep zero padding when printing barcodes from a range --- .../en/modules/labels/label-edit-range.tt | 51 +++++++++++++++---- .../prog/en/modules/labels/label-print.tt | 7 +-- labels/label-create-pdf.pl | 14 ++++- labels/label-print.pl | 24 ++++++--- 4 files changed, 76 insertions(+), 20 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 6f3a463086..2fa3351543 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 @@ -67,30 +67,63 @@