Bug 40473 fixes barcode length calculator of Code39 barcodes in the label creator. When using barcode width of 1 or 100%, the barcode will be centred on the label. But if you use a smaller barcode width, your barcode will be left aligned. Surely it would be good to have the ability to have centred barcodes even when using narrower barcodes?
Created attachment 191811 [details] [review] Bug 40478: Database update to add barcode_justify column to creator_layouts
Created attachment 191812 [details] [review] Bug 40478: Add ability to justify CODE39 barcodes
WIP. So far only handling CODE39 and I have not tested with the different barcode widths that David mentions.
Created attachment 192111 [details] [review] Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13
Created attachment 192112 [details] [review] Bug 40478: Database update to add barcode_justify column to creator_layouts
Created attachment 192113 [details] [review] Bug 40478: Add ability to justify CODE39 barcodes To test: 1. Apply patch, updatedatabase, restart_all 2. Create at least 1 label batch 3. Create or edit an existing layout. 4. You should now see a dropdown labeled "Barcode justification:" with options to align left, right, and center. 5. At this point I like to check "Draw guide boxes" as it makes testing alignment much easier. 6. Now test generating label sets to "Download as PDF". 7. You will want to make sure the barcode properly aligns left, right, and center. 8. Test with all the different "Choose barcode type (encoding):" options. Ensuring the barcodes align correectly left, right, and center. 9. Also test with all the different "Choose layout type:" that will display a barcode.
Created attachment 192114 [details] [review] Bug 40478: Add support for COOP2of5, Industrial2of5 and EAN13