Pain.Order (pain v0.1.0)
Summary
Functions
order = %{
schedule: "2023-09-09T15:00",
employed: %{1 => "_fem", 2 => "_masc", 3 => "Andy Ji", 4 => "Bin Wang"},
customer: %{ "email" => "mail@assembled.app", "name" => "Zi", "phone" => "222-333-4444", "reference" => "", "surname" => "Ao" },
limbs: %{2 => ["Front / Left pectoral", "Front / Abs"]},
}
cs = PainWeb.BookLive.chosen_services(%{
1 => "90Min Reflexology with Chinese Medicine",
2 => "90min Massage", 3 => "Cupping", 4 => "Wet Cupping"
})
IEx.Helpers.recompile
order |> Pain.Order.book(cs)
Functions
Link to this function
book(order, services, addons)
order = %{
schedule: "2023-09-09T15:00",
employed: %{1 => "_fem", 2 => "_masc", 3 => "Andy Ji", 4 => "Bin Wang"},
customer: %{ "email" => "mail@assembled.app", "name" => "Zi", "phone" => "222-333-4444", "reference" => "", "surname" => "Ao" },
limbs: %{2 => ["Front / Left pectoral", "Front / Abs"]},
}
cs = PainWeb.BookLive.chosen_services(%{
1 => "90Min Reflexology with Chinese Medicine",
2 => "90min Massage", 3 => "Cupping", 4 => "Wet Cupping"
})
IEx.Helpers.recompile
order |> Pain.Order.book(cs)
Link to this function
compile_remarks(employed, limbs)
Link to this function