New plants
This commit is contained in:
@@ -11,6 +11,14 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
||||
"Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:white_cabbage) do
|
||||
"White Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:red_cabbage) do
|
||||
"Red Cabbage"
|
||||
end
|
||||
|
||||
def parse_plant(:pumpkin) do
|
||||
"Pumpkin"
|
||||
end
|
||||
@@ -46,4 +54,28 @@ defmodule Osuuspuutarha.Harvest.Parser do
|
||||
def parse_plant(:beetroot) do
|
||||
"Beetroot"
|
||||
end
|
||||
|
||||
def parse_plant(:rhubarb) do
|
||||
"Rhubarb"
|
||||
end
|
||||
|
||||
def parse_plant(:kale) do
|
||||
"Kale"
|
||||
end
|
||||
|
||||
def parse_plant(:cauliflower) do
|
||||
"Cauliflower"
|
||||
end
|
||||
|
||||
def parse_plant(:broccoli) do
|
||||
"Broccoli"
|
||||
end
|
||||
|
||||
def parse_plant(:portulak) do
|
||||
"Portulak"
|
||||
end
|
||||
|
||||
def parse_plant(:green_onions) do
|
||||
"Green Onions"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -11,6 +11,8 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
||||
:lettuce,
|
||||
:tomato,
|
||||
:cabbage,
|
||||
:white_cabbage,
|
||||
:red_cabbage,
|
||||
:pumpkin,
|
||||
:zucchini,
|
||||
:cucumber,
|
||||
@@ -19,7 +21,13 @@ defmodule Osuuspuutarha.Harvest.Yield do
|
||||
:bean,
|
||||
:parsnip,
|
||||
:carrot,
|
||||
:beetroot
|
||||
:beetroot,
|
||||
:rhubarb,
|
||||
:kale,
|
||||
:cauliflower,
|
||||
:broccoli,
|
||||
:portulak,
|
||||
:green_onions
|
||||
]
|
||||
|
||||
field :unit, Ecto.Enum, values: [:kg, :kpl]
|
||||
|
||||
Reference in New Issue
Block a user