Sha256: 4b4b86df9666630f470ee365dd2225600fb145d8cb5a852ab42e0f8631780bcb

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

module ErpInventory
  module ErpApp
    module Organizer
      module InventoryMgt
        class InventoryEntryLocationsController < ::ErpApp::Organizer::BaseController

          def show
          end

          def new
          end

          def create

            location_assignment = InventoryEntryLocation.new
            location_assignment.inventory_entry_id = params[:inventory_entry_id]
            location_assignment.facility_id = params[:facility_id]
            location_assignment.save

            render :json => {:success => true }
          end

          def edit
          end

          def update

            location_assignment = InventoryEntryLocation.find(params[:inventory_entry_location_id])
            location_assignment.fixed_asset_id = params[:fixed_asset_id]
            location_assignment.save

            render :json => {:success => true }

          end

          def destroy

            entry = InventoryEntryLocation.find(params[:inventory_entry_location_id]).destroy
            render :json => { :success => true }

          end

        end
      end #InventoryMgt
    end #Organizer
  end #ErpApp
end #ErpInventory

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_inventory-4.2.0 app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb
erp_inventory-4.0.0 app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb