Compare commits

...

1 Commits
v4.6 ... v3.6.6

Author SHA1 Message Date
Matt-Yorkley
e4bdf1dd44 Ensure Shipping Methods can be created with no tax category
The option to apply *no* tax category should be present in this dropdown.
2021-04-13 10:15:53 -07:00

View File

@@ -49,7 +49,8 @@
%fieldset.tax_categories.no-border-bottom
%legend{align: "center"}= t('.tax_category')
= f.field_container :tax_categories do
= f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] }, {}, :class => "select2 fullwidth"
= f.select :tax_category_id, @tax_categories.map { |tc| [tc.name, tc.id] },
{ include_blank: t(:none) }, class: "select2 fullwidth"
= error_message_on :shipping_method, :tax_category_id
%fieldset.categories.no-border-bottom