This commit is contained in:
nandar
2018-07-26 16:40:42 +06:30
parent 275a7658ce
commit db8bb5687f
4 changed files with 8 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class BatchLineItemsController < ApplicationController
barcode = BatchLineItem.generate_barcode
update_barcode = BatchLineItem.find_by_asset_identity(out[2])
update_barcode.barcode = barcode
barcode_128 = Barby::Code128.new(barcode)
barcode_128 = Barby::Code128B.new(barcode)
update_barcode.barcode_format = barcode_128
update_barcode.save
end