user id update in batch create

This commit is contained in:
nandar
2018-08-20 19:22:59 +06:30
parent 087c4d92d3
commit 2f34bb5aa8

View File

@@ -35,7 +35,7 @@ class BatchesController < ApplicationController
adult_or_child=params[:adult_or_child]
client_id=params[:client_id]
product_category_id=params[:product_category_id]
@batch = Batch.create_batch(date,order_ref,2,"adult_or_child",client_id,product_category_id)
@batch = Batch.create_batch(date,order_ref,current_member.id,"adult_or_child",client_id,product_category_id)
respond_to do |format|
if @batch.save