Comments
Last updated
Was this helpful?
Was this helpful?
p is Person
# The sum of percentages from all sources of wealth needs to be exactly 100.
SUM([
(if allowance in p.sources_of_wealth then p.percentage_allowance else 0 end),
(if inheritance in p.sources_of_wealth then p.percentage_inheritance else 0 end),
(if lotteries in p.sources_of_wealth then p.percentage_lotteries else 0 end),
]) != 100p is Person
# p.domicile = CHE