user id update in batch create
This commit is contained in:
@@ -35,7 +35,7 @@ class BatchesController < ApplicationController
|
|||||||
adult_or_child=params[:adult_or_child]
|
adult_or_child=params[:adult_or_child]
|
||||||
client_id=params[:client_id]
|
client_id=params[:client_id]
|
||||||
product_category_id=params[:product_category_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|
|
respond_to do |format|
|
||||||
if @batch.save
|
if @batch.save
|
||||||
|
|||||||
Reference in New Issue
Block a user