Bugzilla – Attachment 192114 Details for
Bug 40478
Add option to justify barcode on labels
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13
Bug-40478-Add-support-for-COOP2of5-Industrial2of5-.patch (text/plain), 1.49 KB, created by
Lucas Gass (lukeg)
on 2026-01-27 22:38:58 UTC
(
hide
)
Description:
Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2026-01-27 22:38:58 UTC
Size:
1.49 KB
patch
obsolete
>From 93639363fb9d1272a55ba1f6db69e4ff5d7dea88 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Tue, 27 Jan 2026 22:31:19 +0000 >Subject: [PATCH] Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13 > >--- > C4/Labels/Label.pm | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/C4/Labels/Label.pm b/C4/Labels/Label.pm >index f8c118c56d0..8f0df73e26e 100644 >--- a/C4/Labels/Label.pm >+++ b/C4/Labels/Label.pm >@@ -579,6 +579,12 @@ sub barcode { > my $adjusted_llx = $params{'llx'}; > my $barcode_width = $tot_bar_length * $x_scale_factor; > >+ if ( $barcode_justify eq 'C' ) { >+ $adjusted_llx = $params{'llx'} + ( ( $self->{'width'} - $barcode_width ) / 2 ); >+ } elsif ( $barcode_justify eq 'R' ) { >+ $adjusted_llx = $params{'llx'} + ( $self->{'width'} - $barcode_width ); >+ } >+ > eval { > PDF::Reuse::Barcode::COOP2of5( > x => $adjusted_llx, >@@ -600,6 +606,12 @@ sub barcode { > my $adjusted_llx = $params{'llx'}; > my $barcode_width = $tot_bar_length * $x_scale_factor; > >+ if ( $barcode_justify eq 'C' ) { >+ $adjusted_llx = $params{'llx'} + ( ( $self->{'width'} - $barcode_width ) / 2 ); >+ } elsif ( $barcode_justify eq 'R' ) { >+ $adjusted_llx = $params{'llx'} + ( $self->{'width'} - $barcode_width ); >+ } >+ > eval { > PDF::Reuse::Barcode::Industrial2of5( > x => $adjusted_llx, >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40478
:
191811
|
191812
|
192111
|
192112
|
192113
| 192114