I've got 2 custom records; Insurance Carrier and Insurance Type
Entity records have 2 custom fields, one of each type above. This allows me to specify the customer's insurance carrier (EG: Medicare, Blue Cross, etc) and their insurance type (EG: HMO, PPO, etc)
Insurance Type records have "global" settings for a given type. Insurance Carrier records have optional child Insurance Type records, these act as an override for the entities insurance type selection.
For example:
Sale rep enters customer "Brown" who has blue cross of New York HMO. Sales rep doesn't know that Blue Cross of New York HMO plans have specifc, non-standard properties to our business. So we have created a child Insurance Type record on the Blue Cross of New York record with these specific settings. These settings override the generic HMO record that the rep assigned when creating the patient.
(all of this logic is implemented in script)
I hope that made sense.
Anyway, the problem I'm having is that ALL the Insurance Type records are listed in the entity's Insurance Type field when really I only want the top level, generic ones listed.
The filter is easy; SELECT * FROM Insurance_Types WHERE insurance_carrier_link IS NULL
(if I was using SQL) but I'm not, I'm using the filtering in NetSuite and I can't for the life of me figure out how to filter a list based on a field being null (or 0) or whatever.
Please tell me this is possible and that I don't need to create some other dummy field that the filter will play nicely with?
Any help GREATLY appreciated,
Steve