Logic for determining patron address to be used on notices *MASTER RECORD*
- Article Type: General
- Product: Aleph
- Product Version: 18.01
Description:
How do the overdue, bill, etc., programs determine which mailing address to use?
I have noticed that, though all of our address Valid-to dates are expired, we have not experienced any problems.
Resolution:
The ./form_fill overdue, cash, etc., programs call io_z302_selected with "02" (the "mailing address") as the address type. (The z302 is a temporary record combining info from the z303, z304, z305, and z308 records.)
The io_z302_selected program calls io_z304_selected to read the address record. Since the address type is "02", the program checks to see if there are values in the ADM tab_bor_address. If so, it uses *those* to determine which address-type to use for the current time period. The z304 record of this type is used *regardless* of whether the z304_date_to is expired.
If the tab_bor_address is empty, then it looks for a z304 of type 02 with a non-expired z304_date_to. If none is found, then it reads each Z304 looking for the one with the highest Z304-SEQUENCE (the most recently-written). If the address is not expired, it uses it. If it *is* expired, then it reads the z304 with the next-highest Z304-SEQUENCE. If/when it reaches z304 type 01 (the "permanent" address), it uses this type 01 regardless of the z304_date_to value -- the reason being that it does not want to leave the address empty.
- Article last edited: 10/8/2013