Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
productitem.position deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfliegner committed Nov 20, 2022
1 parent c7b3eeb commit 73493f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions testsCreateContract.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 2 additions & 4 deletions testsCreateContract.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -220,7 +220,6 @@ LifeInsuranceDataModel.load_model()

cpi = ProductItem(ref_super=c.id)
cpir = ProductItemRevision(
position=2,
ref_product=LifeRiskTIODProduct,
description="from contract creation",
)
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit 73493f5

Please sign in to comment.