1 PACKAGE eam_pm_utils AS
2 /* $Header: EAMPMUTS.pls 120.1 2006/02/16 01:03:19 kmurthy noship $ */
3
4 /**
5 * This procedure should be called when completing the work order. It will update
6 * the related PM rule data if applicable.
7 */
8 procedure update_pm_when_complete(p_org_id in number,
9 p_wip_entity_id in number,
10 p_completion_date in date);
11
12 /**
13 * This procedure should be called when uncompleting the work order. It will update
14 * the related PM rule data if applicable.
15 */
16 procedure update_pm_when_uncomplete(p_org_id in number,
17 p_wip_entity_id in number);
18
19 /*
20 * This is a function. Given an organization id and wip_entity_number,
21 * figures out whether this is the latest completed work order for
22 * its asset/activity association.
23 */
24 function check_is_last_wo(p_org_id number,
25 p_wip_entity_id number,
26 p_last_service_end_date OUT NOCOPY DATE )
27 return boolean;
28
29
30 /**
31 * This procedure is called to move the forecasted work order suggestions from
32 * forecast table to wip_job_schedule_interface to be uploaded. It removes the
33 * records from forecast table then.
34 */
35 procedure transfer_to_wdj(p_group_id number);
36
37 END eam_pm_utils;