New plants, Alphapetical order for plant list

This commit is contained in:
2023-07-11 12:17:40 +03:00
parent c1786c64c4
commit bafda02b74
3 changed files with 35 additions and 18 deletions

View File

@@ -78,4 +78,16 @@ defmodule Osuuspuutarha.Harvest.Parser do
def parse_plant(:green_onions) do
"Green Onions"
end
def parse_plant(:mangold) do
"Mangold"
end
def parse_plant(:paprika) do
"Paprika"
end
def parse_plant(:chili) do
"Chili"
end
end

View File

@@ -27,7 +27,10 @@ defmodule Osuuspuutarha.Harvest.Yield do
:cauliflower,
:broccoli,
:portulak,
:green_onions
:green_onions,
:mangold,
:paprika,
:chili
]
field :unit, Ecto.Enum, values: [:kg, :kpl]