edit for lock
This commit is contained in:
@@ -48,24 +48,24 @@ class Api::BatchLineItemsController < ApplicationController
|
||||
if check_asset.nil?
|
||||
@out=BatchLineItem.create_product(asset_identity,serial_no,batch_id,manufacture_uid,card_type)
|
||||
else
|
||||
@out=false,'Asset Identity is already registered!',nil
|
||||
@out=false,'Asset Identity is already registered!'
|
||||
end
|
||||
end
|
||||
else
|
||||
if check_manufacture.asset_identity !=card_account_no
|
||||
@out=false,"Error",check_manufacture
|
||||
@out=true,check_manufacture.serial_no,check_manufacture.account_no
|
||||
else
|
||||
@out=false,'Manufacture UID is already registered!',nil
|
||||
@out=false,'Manufacture UID is already registered!'
|
||||
end
|
||||
end
|
||||
else
|
||||
@out=false,'Invalid User!',nil
|
||||
@out=false,'Invalid User!'
|
||||
end
|
||||
else
|
||||
@out=false,"Client doesn't exist!",nil
|
||||
@out=false,"Client doesn't exist!"
|
||||
end
|
||||
else
|
||||
@out=false,"Product Category doesn't exist!",nil
|
||||
@out=false,"Product Category doesn't exist!"
|
||||
end
|
||||
else
|
||||
@out=false,"Batch doesn't exist!"
|
||||
|
||||
Reference in New Issue
Block a user