add oz and lb as allowed units in product import

This commit is contained in:
Andy Brett
2020-09-17 06:34:07 -07:00
parent 77eaebc2a7
commit d1a87f7ba0

View File

@@ -159,7 +159,7 @@ module ProductImport
end
def unit_fields_validation(entry)
unit_types = ['g', 'kg', 't', 'ml', 'l', 'kl', '']
unit_types = ['g', 'oz', 'lb', 'kg', 't', 'ml', 'l', 'kl', '']
unless entry.units&.present?
mark_as_invalid(entry, attribute: 'units',