Bugzilla – Attachment 171350 Details for
Bug 8425
Autobarcode generates duplicate barcodes with AcqCreateItems = on order
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8425: Add an offset parameter for barcode generation in hbyymmincr barcode.pl
Bug-8425-Add-an-offset-parameter-for-barcode-gener.patch (text/plain), 1.24 KB, created by
Biblibre Sandboxes
on 2024-09-11 16:23:25 UTC
(
hide
)
Description:
Bug 8425: Add an offset parameter for barcode generation in hbyymmincr barcode.pl
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2024-09-11 16:23:25 UTC
Size:
1.24 KB
patch
obsolete
>From afab1743787e41fe913c29ec60c0538507b526d1 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <bski@laposte.net> >Date: Wed, 31 Jul 2024 11:32:50 +0200 >Subject: [PATCH] Bug 8425: Add an offset parameter for barcode generation in > hbyymmincr barcode.pl > >In order to propose a patch for 8425 and 30056, we need to have the possibility to ask for multiple barcodes without storing a new barcode. See 8425 and 30056 for more information. > >Note: >Since 30056 also needs this patch, these are splitted in order to rebase >easier > >Signed-off-by: Sam Sowanick <sam.sowanick@corvallisoregon.gov> >--- > C4/Barcodes/ValueBuilder.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/C4/Barcodes/ValueBuilder.pm b/C4/Barcodes/ValueBuilder.pm >index 76464ccd4b..8e861193ee 100644 >--- a/C4/Barcodes/ValueBuilder.pm >+++ b/C4/Barcodes/ValueBuilder.pm >@@ -63,8 +63,11 @@ sub get_barcode { > .siblings("select") > .val(); > >+ if(typeof offset == 'undefined'){ >+ var offset = 0; >+ } > if ( \$(elt).val() == '' ) { >- \$(elt).val(homebranch + '$nextnum'); >+ \$(elt).val(homebranch + ($nextnum + offset)); > } > ~; > return $nextnum, $scr; >-- >2.39.2
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 8425
:
169883
|
169884
|
171350
|
171351
|
174602