zf

zenflows testing
git clone https://s.sonu.ch/~srfsh/zf.git
Log | Files | Refs | Submodules | README | LICENSE

commit d7ea0d956c682c056fc7d8008b0cf4f6db5613ef
parent 6630fa80659840857efa55538b5021fbfc045ae4
Author: srfsh <dev@srf.sh>
Date:   Fri,  7 Oct 2022 10:31:49 +0300

Zenflows.VF.EconomicEvent: add missing cast fields

resourceClassifiedAs was ignored, now it is not.

Diffstat:
Msrc/zenflows/vf/economic_event.ex | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/zenflows/vf/economic_event.ex b/src/zenflows/vf/economic_event.ex @@ -133,7 +133,7 @@ defp do_chgset("raise", schema, params) do schema |> Changeset.cast(params, ~w[ resource_conforms_to_id resource_inventoried_as_id - resource_quantity to_location_id + resource_classified_as resource_quantity to_location_id ]a) |> Changeset.validate_required([:resource_quantity]) |> Measure.cast(:resource_quantity) @@ -145,7 +145,7 @@ defp do_chgset("produce", schema, params) do schema |> Changeset.cast(params, ~w[ output_of_id resource_conforms_to_id resource_inventoried_as_id - resource_quantity to_location_id + resource_classified_as resource_quantity to_location_id ]a) |> Changeset.validate_required(~w[output_of_id resource_quantity]a) |> Measure.cast(:resource_quantity)