inventory setup
This commit is contained in:
10
app/views/inventory/inventory_definitions/_form.html.erb
Normal file
10
app/views/inventory/inventory_definitions/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@inventory_definition) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! inventory_definition, :id, :created_at, :updated_at
|
||||
json.url inventory_definition_url(inventory_definition, format: :json)
|
||||
6
app/views/inventory/inventory_definitions/edit.html.erb
Normal file
6
app/views/inventory/inventory_definitions/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Inventory Definition</h1>
|
||||
|
||||
<%= render 'form', inventory_definition: @inventory_definition %>
|
||||
|
||||
<%= link_to 'Show', @inventory_definition %> |
|
||||
<%= link_to 'Back', inventory_definitions_path %>
|
||||
25
app/views/inventory/inventory_definitions/index.html.erb
Normal file
25
app/views/inventory/inventory_definitions/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Inventory Definitions</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @inventory_definitions.each do |inventory_definition| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', inventory_definition %></td>
|
||||
<td><%= link_to 'Edit', edit_inventory_definition_path(inventory_definition) %></td>
|
||||
<td><%= link_to 'Destroy', inventory_definition, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Inventory Definition', new_inventory_definition_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @inventory_definitions, partial: 'inventory_definitions/inventory_definition', as: :inventory_definition
|
||||
5
app/views/inventory/inventory_definitions/new.html.erb
Normal file
5
app/views/inventory/inventory_definitions/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Inventory Definition</h1>
|
||||
|
||||
<%= render 'form', inventory_definition: @inventory_definition %>
|
||||
|
||||
<%= link_to 'Back', inventory_definitions_path %>
|
||||
4
app/views/inventory/inventory_definitions/show.html.erb
Normal file
4
app/views/inventory/inventory_definitions/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_inventory_definition_path(@inventory_definition) %> |
|
||||
<%= link_to 'Back', inventory_definitions_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "inventory_definitions/inventory_definition", inventory_definition: @inventory_definition
|
||||
10
app/views/inventory/stock_check_items/_form.html.erb
Normal file
10
app/views/inventory/stock_check_items/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@stock_check_item) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! stock_check_item, :id, :created_at, :updated_at
|
||||
json.url stock_check_item_url(stock_check_item, format: :json)
|
||||
6
app/views/inventory/stock_check_items/edit.html.erb
Normal file
6
app/views/inventory/stock_check_items/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Stock Check Item</h1>
|
||||
|
||||
<%= render 'form', stock_check_item: @stock_check_item %>
|
||||
|
||||
<%= link_to 'Show', @stock_check_item %> |
|
||||
<%= link_to 'Back', stock_check_items_path %>
|
||||
25
app/views/inventory/stock_check_items/index.html.erb
Normal file
25
app/views/inventory/stock_check_items/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Stock Check Items</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @stock_check_items.each do |stock_check_item| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', stock_check_item %></td>
|
||||
<td><%= link_to 'Edit', edit_stock_check_item_path(stock_check_item) %></td>
|
||||
<td><%= link_to 'Destroy', stock_check_item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Stock Check Item', new_stock_check_item_path %>
|
||||
@@ -0,0 +1 @@
|
||||
json.array! @stock_check_items, partial: 'stock_check_items/stock_check_item', as: :stock_check_item
|
||||
5
app/views/inventory/stock_check_items/new.html.erb
Normal file
5
app/views/inventory/stock_check_items/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Stock Check Item</h1>
|
||||
|
||||
<%= render 'form', stock_check_item: @stock_check_item %>
|
||||
|
||||
<%= link_to 'Back', stock_check_items_path %>
|
||||
4
app/views/inventory/stock_check_items/show.html.erb
Normal file
4
app/views/inventory/stock_check_items/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_stock_check_item_path(@stock_check_item) %> |
|
||||
<%= link_to 'Back', stock_check_items_path %>
|
||||
1
app/views/inventory/stock_check_items/show.json.jbuilder
Normal file
1
app/views/inventory/stock_check_items/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "stock_check_items/stock_check_item", stock_check_item: @stock_check_item
|
||||
10
app/views/inventory/stock_checks/_form.html.erb
Normal file
10
app/views/inventory/stock_checks/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@stock_check) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! stock_check, :id, :created_at, :updated_at
|
||||
json.url stock_check_url(stock_check, format: :json)
|
||||
6
app/views/inventory/stock_checks/edit.html.erb
Normal file
6
app/views/inventory/stock_checks/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Stock Check</h1>
|
||||
|
||||
<%= render 'form', stock_check: @stock_check %>
|
||||
|
||||
<%= link_to 'Show', @stock_check %> |
|
||||
<%= link_to 'Back', stock_checks_path %>
|
||||
25
app/views/inventory/stock_checks/index.html.erb
Normal file
25
app/views/inventory/stock_checks/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Stock Checks</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @stock_checks.each do |stock_check| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', stock_check %></td>
|
||||
<td><%= link_to 'Edit', edit_stock_check_path(stock_check) %></td>
|
||||
<td><%= link_to 'Destroy', stock_check, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Stock Check', new_stock_check_path %>
|
||||
1
app/views/inventory/stock_checks/index.json.jbuilder
Normal file
1
app/views/inventory/stock_checks/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @stock_checks, partial: 'stock_checks/stock_check', as: :stock_check
|
||||
5
app/views/inventory/stock_checks/new.html.erb
Normal file
5
app/views/inventory/stock_checks/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Stock Check</h1>
|
||||
|
||||
<%= render 'form', stock_check: @stock_check %>
|
||||
|
||||
<%= link_to 'Back', stock_checks_path %>
|
||||
4
app/views/inventory/stock_checks/show.html.erb
Normal file
4
app/views/inventory/stock_checks/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_stock_check_path(@stock_check) %> |
|
||||
<%= link_to 'Back', stock_checks_path %>
|
||||
1
app/views/inventory/stock_checks/show.json.jbuilder
Normal file
1
app/views/inventory/stock_checks/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "stock_checks/stock_check", stock_check: @stock_check
|
||||
10
app/views/inventory/stock_journals/_form.html.erb
Normal file
10
app/views/inventory/stock_journals/_form.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%= simple_form_for(@stock_journal) do |f| %>
|
||||
<%= f.error_notification %>
|
||||
|
||||
<div class="form-inputs">
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<%= f.button :submit %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -0,0 +1,2 @@
|
||||
json.extract! stock_journal, :id, :created_at, :updated_at
|
||||
json.url stock_journal_url(stock_journal, format: :json)
|
||||
6
app/views/inventory/stock_journals/edit.html.erb
Normal file
6
app/views/inventory/stock_journals/edit.html.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<h1>Editing Stock Journal</h1>
|
||||
|
||||
<%= render 'form', stock_journal: @stock_journal %>
|
||||
|
||||
<%= link_to 'Show', @stock_journal %> |
|
||||
<%= link_to 'Back', stock_journals_path %>
|
||||
25
app/views/inventory/stock_journals/index.html.erb
Normal file
25
app/views/inventory/stock_journals/index.html.erb
Normal file
@@ -0,0 +1,25 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<h1>Stock Journals</h1>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<% @stock_journals.each do |stock_journal| %>
|
||||
<tr>
|
||||
<td><%= link_to 'Show', stock_journal %></td>
|
||||
<td><%= link_to 'Edit', edit_stock_journal_path(stock_journal) %></td>
|
||||
<td><%= link_to 'Destroy', stock_journal, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<%= link_to 'New Stock Journal', new_stock_journal_path %>
|
||||
1
app/views/inventory/stock_journals/index.json.jbuilder
Normal file
1
app/views/inventory/stock_journals/index.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.array! @stock_journals, partial: 'stock_journals/stock_journal', as: :stock_journal
|
||||
5
app/views/inventory/stock_journals/new.html.erb
Normal file
5
app/views/inventory/stock_journals/new.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<h1>New Stock Journal</h1>
|
||||
|
||||
<%= render 'form', stock_journal: @stock_journal %>
|
||||
|
||||
<%= link_to 'Back', stock_journals_path %>
|
||||
4
app/views/inventory/stock_journals/show.html.erb
Normal file
4
app/views/inventory/stock_journals/show.html.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
|
||||
<%= link_to 'Edit', edit_stock_journal_path(@stock_journal) %> |
|
||||
<%= link_to 'Back', stock_journals_path %>
|
||||
1
app/views/inventory/stock_journals/show.json.jbuilder
Normal file
1
app/views/inventory/stock_journals/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "stock_journals/stock_journal", stock_journal: @stock_journal
|
||||
Reference in New Issue
Block a user