Permalink
Browse files

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

…ate numbers in two groups instead of three
  • Loading branch information...
ritxi committed Apr 20, 2012
1 parent 3d6f38c commit 2183177e872fb49324cbb2a721084f74a6897458
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 2183177

Please sign in to comment.