New plants

This commit is contained in:
2023-07-03 17:43:02 +03:00
parent 99ccfb81d7
commit df436c286c
3 changed files with 51 additions and 2 deletions

View File

@@ -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

View File

@@ -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]