The following lines contain the word 'select', 'insert', 'update' or 'delete':
FUNCTION NAME: delete_notifs()
===========================================================================*/
FUNCTION delete_notifs(X_po_header_id IN number)
return boolean is
X_deleted boolean;
DELETE FROM po_notification_controls
WHERE po_header_id = X_po_header_id;
X_deleted := TRUE;
return(X_deleted);
po_message_s.sql_error('delete_notifs', x_progress, sqlcode);
END delete_notifs;
SELECT COUNT(1)
INTO X_amt_base_notif_cntl_row
FROM po_notification_controls
WHERE po_header_id = X_po_header_id
AND notification_condition_code <> 'EXPIRATION';
SELECT 'date based notification controls exist'
FROM po_notification_controls
WHERE po_header_id = X_po_header_id
AND notification_condition_code = 'EXPIRATION';