zf

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

commit 6d5d27df2e404c7ce4b3ea09e6b7be7d99a2c802
parent 16dcf9e49d59dda1ad6717414a15190c4c93ca54
Author: srfsh <dev@srf.sh>
Date:   Wed,  7 Dec 2022 13:46:10 +0300

Zenflows.VF.EconomicResource: derive Jason.Encoder for trace_dpp

Diffstat:
Msrc/zenflows/vf/economic_resource.ex | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/zenflows/vf/economic_resource.ex b/src/zenflows/vf/economic_resource.ex @@ -67,6 +67,18 @@ alias Zenflows.VF.{ previous_event: nil | EconomicEvent.t(), } +@derive {Jason.Encoder, only: ~w[ + id + name note tracking_identifier classified_as state_id okhv + repo version licensor license metadata + accounting_quantity_has_numerical_value + accounting_quantity_has_unit_id + onhand_quantity_has_numerical_value + onhand_quantity_has_unit_id + conforms_to_id primary_accountable_id custodian_id + stage_id current_location_id lot_id contained_in_id + unit_of_effort_id previous_event_id +]a} schema "vf_economic_resource" do field :name, :string field :note, :string