Class: ErpInventory::ErpApp::Organizer::InventoryMgt::InventoryEntryLocationsController
- Inherits:
-
ErpApp::Organizer::BaseController
- Object
- ErpApp::Organizer::BaseController
- ErpInventory::ErpApp::Organizer::InventoryMgt::InventoryEntryLocationsController
- Defined in:
- app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 13 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 |
#destroy ⇒ Object
36 37 38 39 40 41 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 36 def destroy entry = InventoryEntryLocation.find(params[:inventory_entry_location_id]).destroy render :json => { :success => true } end |
#edit ⇒ Object
23 24 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 23 def edit end |
#new ⇒ Object
10 11 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 10 def new end |
#show ⇒ Object
7 8 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 7 def show end |
#update ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'app/controllers/erp_inventory/erp_app/organizer/inventory_mgt/inventory_entry_locations_controller.rb', line 26 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 |