+ RAISE EXCEPTION 'You must supply a unique Location Identifier for this Site.';
+ END IF;
+
+ -- Populate formatted name
+ IF (NEW.location_aisle IS NOT NULL) THEN
+ NEW.location_formatname := NEW.location_aisle;
+ ELSE
+ NEW.location_formatname := '';
+ END IF;
+
+ IF (NEW.location_rack IS NOT NULL) THEN
+ NEW.location_formatname := (NEW.location_formatname || NEW.location_rack);
+ END IF;
+
+ IF (NEW.location_bin IS NOT NULL) THEN
+ NEW.location_formatname := (NEW.location_formatname || NEW.location_bin);
+ END IF;
+
+ IF (NEW.location_name IS NOT NULL) THEN
+ NEW.location_formatname := (NEW.location_formatname || NEW.location_name);