Skip to content

Commit

Permalink
Merge pull request #2873 from sanger/GPL-605-Unable-to-print-barcode-…
Browse files Browse the repository at this point in the history
…from-multiplexed-library-manifests

Modified ean13_barcode to human_barcode for label printer base_tube.
  • Loading branch information
stevieing authored Aug 12, 2020
2 parents 0682736 + 5557cb1 commit 8d3fca6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/label_printer/label_printer/label/base_tube.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def round_label_bottom_line(tube)
end

def barcode(tube)
tube.ean13_barcode
tube.machine_barcode
end

def tubes
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/label_printer/asset_labels_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
bottom_line: date,
round_label_top_line: asset.prefix,
round_label_bottom_line: asset.barcode_number,
barcode: asset.machine_barcode.to_s } }
barcode: asset.machine_barcode } }
end
end

Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/batch_multiplex_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.ean13_barcode }
barcode: tube1.machine_barcode }
end

test 'should return correct tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/plate_to_tube_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.ean13_barcode }
barcode: tube1.machine_barcode }
end

test 'should have tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/sample_manifest_multiplex_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.ean13_barcode }
barcode: tube1.machine_barcode }
end

test 'should return correct tubes' do
Expand Down
2 changes: 1 addition & 1 deletion test/lib/label_printer/sample_manifest_tube_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup
bottom_line: (Date.today.strftime('%e-%^b-%Y')).to_s,
round_label_top_line: prefix,
round_label_bottom_line: barcode1,
barcode: tube1.ean13_barcode }
barcode: tube1.machine_barcode }
end

test 'should return the right list of tubes' do
Expand Down

0 comments on commit 8d3fca6

Please sign in to comment.