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?
COR for TX Guaranty Fee
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: COR for TX Guaranty Fee
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.
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).
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.
This is an example of working with the Guaranty fields. Let me know if you have any further questions.
Code: Select all
def X4700842567e3b7fa_IsSimoOP(policy, tic):
return (policy.Type == TitleProductType.OwnersPolicy
and tic.PolicyType == PolicyType.Simultaneous)
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()
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()
Bob Richards, Senior Software Developer, SoftPro