From 0c4f797551dc2f12a7d348e8f75e7978530b1109 Mon Sep 17 00:00:00 2001 From: Sunandar Date: Wed, 25 Jan 2017 14:29:49 +0630 Subject: [PATCH] edit api --- app/controllers/api/batch_line_items_controller.rb | 2 +- app/views/api/batch_line_items/register.json.jbuilder | 4 ++-- app/views/api/batches/batch_progress_list.json.jbuilder | 2 +- app/views/api/batches/resume_batch.json.jbuilder | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/api/batch_line_items_controller.rb b/app/controllers/api/batch_line_items_controller.rb index e27b96b..17de51a 100644 --- a/app/controllers/api/batch_line_items_controller.rb +++ b/app/controllers/api/batch_line_items_controller.rb @@ -3,7 +3,7 @@ class Api::BatchLineItemsController < ApplicationController def register batch_id=params[:batch_id] session_token=params[:session_token] - manufacture_uid = params[:manufacture_uid] + manufacture_uid = params[:card_manufacture] card_type = params[:card_type] user_id="" diff --git a/app/views/api/batch_line_items/register.json.jbuilder b/app/views/api/batch_line_items/register.json.jbuilder index a6a6ebc..56c768d 100644 --- a/app/views/api/batch_line_items/register.json.jbuilder +++ b/app/views/api/batch_line_items/register.json.jbuilder @@ -1,8 +1,8 @@ if @out[0] == true json.set! :status, @out[0] json.set! :serial_no, @out[1] - json.set! :wristband_code, @out[2] + json.set! :account_no, @out[2] else json.set! :status, @out[0] json.set! :message,@out[1] - end \ No newline at end of file + end \ No newline at end of file diff --git a/app/views/api/batches/batch_progress_list.json.jbuilder b/app/views/api/batches/batch_progress_list.json.jbuilder index 7b01e54..6f02a87 100644 --- a/app/views/api/batches/batch_progress_list.json.jbuilder +++ b/app/views/api/batches/batch_progress_list.json.jbuilder @@ -4,4 +4,4 @@ else json.set! :status, @out[0] json.set! :message,@out[1] - end \ No newline at end of file + end \ No newline at end of file diff --git a/app/views/api/batches/resume_batch.json.jbuilder b/app/views/api/batches/resume_batch.json.jbuilder index 7b01e54..6f02a87 100644 --- a/app/views/api/batches/resume_batch.json.jbuilder +++ b/app/views/api/batches/resume_batch.json.jbuilder @@ -4,4 +4,4 @@ else json.set! :status, @out[0] json.set! :message,@out[1] - end \ No newline at end of file + end \ No newline at end of file