export to seller csv

This commit is contained in:
nandar
2018-08-01 18:45:27 +06:30
parent b885b658f6
commit 21b58c4bcf
2 changed files with 32 additions and 1 deletions

View File

@@ -198,7 +198,7 @@ class BatchLineItemsController < ApplicationController
filename=client_name.to_s+"_"+product_name.to_s+"_"+datestr
respond_to do |format|
format.html
format.csv { send_data @batchLineItems.to_csv(client_id,location_code), filename: "#{filename}.csv" }
format.csv { send_data @batchLineItems.to_csv_seller(client_id,location_code), filename: "#{filename}.csv" }
end
end