More FUN with Splits
Posted: Tue Oct 25, 2016 11:29 am
Any ideas how I can return the total of OwnersPolicy split 1 to split 5. I don’t want the dollar amount I want the total percent. So if split 1 is 10% and 2 is 20% and 3 is 18% and 4 and 5 are empty, I want it to return 48%........
I have the following code which gets the percentage entered into each owners policy split field, BUT how do I get the TOTAL?
I have the following code which gets the percentage entered into each owners policy split field, BUT how do I get the TOTAL?
Code: Select all
def Split_Percent_Validate(args):
split = args.Context
policy = split.Parent.Parent
Order = args.Context.Root
SplitPercent = 0
if Order.IsTemplate:
return
if str(policy).StartsWith('Own'):
if policy.Type == TitleProductType.OwnersPolicy:
SplitPercent = split.Percent
args.RaiseInformation (str(SplitPercent))