Added corn yield

This commit is contained in:
2023-10-13 13:17:41 +03:00
parent c13d9d8669
commit e7f9ae1f77
3 changed files with 7 additions and 1 deletions

View File

@@ -110,4 +110,8 @@ defmodule Osuuspuutarha.Harvest.Parser do
def parse_plant(:parsley) do def parse_plant(:parsley) do
"Parsley" "Parsley"
end end
def parse_plant(:corn) do
"Corn"
end
end end

View File

@@ -35,7 +35,8 @@ defmodule Osuuspuutarha.Harvest.Yield do
:garlic, :garlic,
:onion, :onion,
:spinach, :spinach,
:parsley :parsley,
:corn
] ]
field :unit, Ecto.Enum, values: [:kg, :kpl] field :unit, Ecto.Enum, values: [:kg, :kpl]

View File

@@ -27,6 +27,7 @@
"Carrot": :carrot, "Carrot": :carrot,
"Cauliflower": :cauliflower, "Cauliflower": :cauliflower,
"Chili": :chili, "Chili": :chili,
"Corn": :corn,
"Cucumber": :cucumber, "Cucumber": :cucumber,
"Garlic": :garlic, "Garlic": :garlic,
"Green Onions": :green_onions, "Green Onions": :green_onions,