update api uid
This commit is contained in:
@@ -139,7 +139,7 @@ class Api::BatchLineItemsController < ApplicationController
|
||||
end
|
||||
|
||||
def update_manufacture_uid
|
||||
# account_no = params[:account_no]
|
||||
account_no = params[:account_no]
|
||||
barcode = params[:barcode]
|
||||
manufacture_uid = params[:manufacture_uid]
|
||||
session_token = params[:session_token]
|
||||
@@ -148,8 +148,8 @@ class Api::BatchLineItemsController < ApplicationController
|
||||
if !find_user.nil?
|
||||
if barcode.present?
|
||||
batch_line_item = BatchLineItem.find_by_barcode(barcode)
|
||||
elsif manufacture_uid.present?
|
||||
batch_line_item = BatchLineItem.find_by_manufacture_uid(manufacture_uid)
|
||||
elsif account_no.present?
|
||||
batch_line_item = BatchLineItem.find_by_asset_identity(account_no)
|
||||
end
|
||||
|
||||
if !batch_line_item.nil?
|
||||
|
||||
Reference in New Issue
Block a user