change client id

This commit is contained in:
nandar
2017-02-07 10:22:42 +06:30
parent 90eeb2ea1c
commit 57014382c8

View File

@@ -11,6 +11,9 @@ class Api::BatchesController < ApplicationController
adult_or_child=params[:adult_or_child]
client_id=params[:client_id]
client = Client.find_by_name(client_id)
client_id = client.id
user_id=check_member.user_id
batch = Batch.create_batch(created_by,date,order_ref,card_qty,user_id,adult_or_child,client_id)
if !batch.nil?