This commit is contained in:
nandar
2018-03-06 13:42:01 +06:30
parent 2132ccfcae
commit 15d1df08fa

View File

@@ -72,7 +72,7 @@ class BatchLineItem < ApplicationRecord
if !find_client.nil? if !find_client.nil?
encrypt_key=find_client.secrect_key encrypt_key=find_client.secrect_key
end end
attributes = %w{serial_no asset_identity batch_id manufacture_uid asset_type secret_token location} attributes = %w{serial_no asset_identity batch_id manufacture_uid asset_type secret_token location security_code}
CSV.generate(headers: true) do |csv| CSV.generate(headers: true) do |csv|
csv << attributes csv << attributes
all.each do |encoder| all.each do |encoder|