Use Case:
In the underwriting department, we have group accounts (Parent Companies) and multiple location stores linked to some group accounts.
1. If the Cust Crdt Grp Nbr doesn’t have a Customer Group Credit Limit (or is equal to zero), then I must take the distinct summation value(s) of the “Cust Location Nbr”, to fill in that void.
2. BUT if the “Cust Crdt Grp Nbr” DOES contain a value greater than zero AND the “Cust Location Nbr” also contains a value greater than zero ; I must add both distinct values together to obtain the full credit line amount. 1. (Example: Grp = $75.00, $10.00, $10.00, & Location = $5….Total Credit Line limit should be $100)