From 73493f53e75670e9e175627f91025fe660572dc1 Mon Sep 17 00:00:00 2001 From: michaelfliegner Date: Sun, 20 Nov 2022 19:12:27 +0100 Subject: [PATCH] productitem.position deleted --- testsCreateContract.ipynb | 4 ++-- testsCreateContract.jl | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/testsCreateContract.ipynb b/testsCreateContract.ipynb index 28f9e14..410019b 100644 --- a/testsCreateContract.ipynb +++ b/testsCreateContract.ipynb @@ -293,7 +293,7 @@ "PartnerRole = tiprRole[\"Insured Person\"]\n", "\n", "cpi = ProductItem(ref_super=c.id)\n", - "cpir = ProductItemRevision(position=1, ref_product=LifeRiskTIODProduct, description=\"from contract creation\")\n", + "cpir = ProductItemRevision(ref_product=LifeRiskTIODProduct, description=\"from contract creation\")\n", "create_subcomponent!(c, cpi, cpir, w1)\n", "\n", "LifeInsuranceDataModel.create_product_instance(w1, cpi, LifeRiskTIODProduct, Partner1, PartnerRole)\n", @@ -377,7 +377,7 @@ "PartnerRole = tiprRole[\"Insured Person\"]\n", "\n", "cpi = ProductItem(ref_super=c.id)\n", - "cpir = ProductItemRevision(position=2, ref_product=LifeRiskTIODProduct, description=\"from contract 4th mutation\")\n", + "cpir = ProductItemRevision(ref_product=LifeRiskTIODProduct, description=\"from contract 4th mutation\")\n", "create_subcomponent!(c, cpi, cpir, w4)\n", "\n", "LifeInsuranceDataModel.create_product_instance(w4, cpi, LifeRiskTIODProduct, Partner1, PartnerRole)\n", diff --git a/testsCreateContract.jl b/testsCreateContract.jl index 31eaa55..4b22f7c 100644 --- a/testsCreateContract.jl +++ b/testsCreateContract.jl @@ -16,8 +16,8 @@ using JSON if (haskey(ENV, "GITPOD_REPO_ROOT")) run(```psql -f sqlsnippets/droptables.sql```) -elseif (haskey(ENV, "GENIE_ENV") & (ENV["GENIE_ENV"]=="dev")) - +elseif (haskey(ENV, "GENIE_ENV") & (ENV["GENIE_ENV"] == "dev")) + run(```psql -d postgres -f sqlsnippets/droptables.sql```) end # Loading the data model- Create tables, constraints etc. and load Roles @@ -220,7 +220,6 @@ LifeInsuranceDataModel.load_model() cpi = ProductItem(ref_super=c.id) cpir = ProductItemRevision( - position=2, ref_product=LifeRiskTIODProduct, description="from contract creation", ) @@ -277,7 +276,6 @@ LifeInsuranceDataModel.load_model() cpi = ProductItem(ref_super=c.id) cpir = ProductItemRevision( - position=2, ref_product=LifeRiskTIODProduct, description="from contract 4th mutation", )