Skip to content

Commit

Permalink
Add hints to stock location flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jhawthorn committed Oct 4, 2017
1 parent baf5df9 commit 2ee01e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/app/views/spree/admin/stock_locations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<%= f.field_container :active do %>
<%= f.check_box :active %>
<%= f.label :active %>
<%= f.field_hint :active %>
<% end %>

<%= f.field_container :default do %>
Expand All @@ -34,26 +35,31 @@
<%= f.field_container :backorderable_default do %>
<%= f.check_box :backorderable_default %>
<%= f.label :backorderable_default %>
<%= f.field_hint :backorderable_default %>
<% end %>

<%= f.field_container :propagate_all_variants do %>
<%= f.check_box :propagate_all_variants %>
<%= f.label :propagate_all_variants %>
<%= f.field_hint :propagate_all_variants %>
<% end %>

<%= f.field_container :restock_inventory do %>
<%= f.check_box :restock_inventory %>
<%= f.label :restock_inventory %>
<%= f.field_hint :restock_inventory %>
<% end %>

<%= f.field_container :fulfillable do %>
<%= f.check_box :fulfillable %>
<%= f.label :fulfillable %>
<%= f.field_hint :fulfillable %>
<% end %>

<%= f.field_container :check_stock_on_transfer do %>
<%= f.check_box :check_stock_on_transfer %>
<%= f.label :check_stock_on_transfer %>
<%= f.field_hint :check_stock_on_transfer %>
<% end %>
</fieldset>

Expand Down
7 changes: 7 additions & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,13 @@ en:
spree/promotion:
starts_at: "This determines when the promotion can be applied to orders. <br/> If no value is specified, the promotion will be immediately available."
expires_at: "This determines when the promotion expires. <br/> If no value is specified, the promotion will never expire."
spree/stock_location:
active: "This determines whether stock from this location can be used when building packages.<br/> Default: Checked"
backorderable_default: "When checked, stock items in this location will default to allowing backorders.<br/> Default: Unchecked"
propagate_all_variants: "When checked, this will create a stock item for in this stock location.<br/> Default: Checked"
restock_inventory: "When checked, returned inventory can be added back to this location's stock levels.<br/> Default: checked"
fulfillable: "When unchecked, this indicates that items in this location don't require actual fulfilment. Stock will not be checked when shipping and emails will not be sent.<br/> Default: Checked"
check_stock_on_transfer: "When checked, inventory levels will be checked when performing stock transfers.<br/> Default: Checked"
spree/store:
cart_tax_country_iso: "This determines which country is used for taxes on carts (orders which don't yet have an address).<br/> Default: None."
spree/variant:
Expand Down

0 comments on commit 2ee01e2

Please sign in to comment.