COR for TX Guaranty Fee

Questions about and code samples for custom order rules and validation within Select.
Post Reply
bdutil
Posts: 121
Joined: Tue Jul 19, 2016 1:48 pm

COR for TX Guaranty Fee

Post by bdutil »

I'm looking to have the Owner's Policy Guaranty Fee populate to the same line as the Lender's Policy Guaranty Fee if the Policy Type is Simultaneous. I can't seem to harness the Guaranty Fee Field though. They also want to make sure the Description is set to Title - Guaranty Fee and the CDF To Code is set to O.

Is this possible?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: COR for TX Guaranty Fee

Post by BobRichards »

Let's see if this can get you going. We will use a common function that will be used by all other handlers. I am giving it a unique (weird but legal) name to ensure that it will not colide with any other method in all the modules in the order. It will return true if this is an owners policy and if it is part of a simultaneous issue. We need this since we only want to alter those types of fields.

Code: Select all

def X4700842567e3b7fa_IsSimoOP(policy, tic):
	return (policy.Type == TitleProductType.OwnersPolicy 
		and tic.PolicyType == PolicyType.Simultaneous)
The next section will set the description field for the guaranty. Notice for all other policy types, we allow Select to run its default rule (args.RunDefaultRule).

Code: Select all

def GuarantyFee_Description_Value(args):
	if args.Context.Root.IsTemplate:
		return
	
	# Ignore all but Owner policies and non-simultaneous policy.
	fee = args.Context
	policy = fee.Parent
	tic = policy.Parent # Title Insurance Calculation
	if X4700842567e3b7fa_IsSimoOP(policy, tic):
		# Found it.
		args.Value = 'New value...'
	else:
		args.RunDefaultRule()
Next, you need to set the line to the same one as the Loan policy guaranty. You will need a COR for HUD orders also.

Code: Select all

def GuarantyFee_CDFLine_Value(args):
	if args.Context.Root.IsTemplate:
		return
	
	# Ignore all but Owner policies and non-simultaneous policy.
	fee = args.Context
	policy = fee.Parent
	tic = policy.Parent # Title Insurance Calculation
	order = args.Context.Root
	if X4700842567e3b7fa_IsSimoOP(policy, tic):
		# Found it.
		args.Value = tic.LoanPolicy.GuarantyFee.CDFLine
	else:
		args.RunDefaultRule()
This is an example of working with the Guaranty fields. Let me know if you have any further questions.
Bob Richards, Senior Software Developer, SoftPro
Post Reply