Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change barcode label format, move checksum to the beginning and separ…

…ate numbers in two groups instead of three
  • Loading branch information...
commit 2183177e872fb49324cbb2a721084f74a6897458 1 parent 3d6f38c
@ritxi authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/barcode_dispatcher/base.rb
View
6 lib/barcode_dispatcher/base.rb
@@ -28,11 +28,11 @@ def labeled?
end
def code_with_format
- [].tap { |parts|
+ "#{barcode.checksum} "+[].tap { |parts|
code.clone.tap do |code_formated|
- 3.times { parts << code_formated.slice!(0,4) }
+ 2.times { parts << code_formated.slice!(0,6) }
end
- }.join(' - ')+" #{barcode.checksum}"
+ }.join(' ')
end
def to_rmagick
Please sign in to comment.
Something went wrong with that request. Please try again.