New plants
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user