New plants

This commit is contained in:
2023-07-26 10:15:05 +03:00
parent 91586adef3
commit 80fa92dadb
3 changed files with 25 additions and 1 deletions

View File

@@ -94,4 +94,20 @@ defmodule Osuuspuutarha.Harvest.Parser do
def parse_plant(:kohlrabi) do
"Kohlrabi"
end
def parse_plant(:garlic) do
"Garlic"
end
def parse_plant(:onion) do
"Onion"
end
def parse_plant(:spinach) do
"Spinach"
end
def parse_plant(:parsley) do
"Parsley"
end
end

View File

@@ -31,7 +31,11 @@ defmodule Osuuspuutarha.Harvest.Yield do
:mangold,
:paprika,
:chili,
:kohlrabi
:kohlrabi,
:garlic,
:onion,
:spinach,
:parsley
]
field :unit, Ecto.Enum, values: [:kg, :kpl]