1 PACKAGE GMS_AP_API2 AS
2 /* $Header: gmsapx2s.pls 120.0 2005/05/29 11:32:23 appldev noship $ */
3
4 -- Start of comments
5 -- -----------------
6 -- API Name : verify_create_adl
7 -- Type : public
8 -- Pre Reqs : None
9 -- Function : This is used to create award distribution lines
10 -- using the bulk processing. This provides a
11 -- interface with ap recurring invoice feature.
12 -- Logic : Identify the newly created invoice distribution
13 -- lines and create award distribution lines for
14 -- sponsored project.
15 -- Parameters :
16 -- IN : p_invoice_id IN NUMBER
17 -- The invoice id created and that may
18 -- have distributions associated with
19 -- an award.
20 -- : p_calling_sequence IN varchar2
21 -- calling sequence of the API for the debugging purpose.
22 -- Calling API : AP_RECURRING_INVOICES_PKG.ap_create_recurring_invoices
23 -- ap_approval_pkg
24 -- End of comments
25 -- ----------------
26
27 PROCEDURE verify_create_adls( p_invoice_id IN NUMBER,
28 p_calling_sequence IN VARCHAR2 ) ;
29
30 -- Start of comments
31 -- -----------------
32 -- API Name : validate_transaction
33 -- Type : public
34 -- Pre Reqs : None
35 -- BUG : 2755183
36 -- Description : INVOICE ENTRY DOES NOT VALIDATE EXP ITEM DATE W/ AWARD COPIED FROM DIST SET.
37 --
38 -- Function : This function is called from AP_INVOICE_DISTRIBUTIONS_PKG.
39 -- insert_from_dist_set to validate the award related
40 -- information.
41 -- Logic : Determine the award and call gms standard
42 -- validation routine.
43 -- Parameters :
44 -- IN : x_project_id IN Number
45 -- Project ID value.
46 -- x_task_id IN Number
47 -- Task Identifier.
48 -- x_award_id IN number
49 -- ADL identifier, AWARD_SET_ID reference value.
50 -- x_expenditure_type IN varchar2
51 -- Expenditure type
52 -- x_expenditure_item_date in date
53 -- Expenditure item date.
54 -- x_calling_sequence in varchar2
55 -- calling api identifier.
56 -- x_msg_application in varchar2
57 -- application identifier = 'GMS'
58 -- x_msg_type out varchar2,
59 -- identify the message type.
60 -- X_msg_count out number
61 -- count of message
62 -- X_msg_data out varchar2
63 -- message label
64 -- Calling API : AP_INVOICE_DISTRIBUTIONS_PKG.insert_from_dist_set
65 --
66 -- End of comments
67 -- ----------------
68
69 PROCEDURE validate_transaction( x_project_id IN NUMBER,
70 x_task_id IN NUMBER,
71 x_award_id IN NUMBER,
72 x_expenditure_type IN varchar2,
73 x_expenditure_item_date IN DATE,
74 x_calling_sequence in VARCHAR2,
75 x_msg_application in out nocopy VARCHAR2,
76 x_msg_type out nocopy VARCHAR2,
77 X_msg_count OUT nocopy NUMBER,
78 X_msg_data OUT nocopy VARCHAR2 ) ;
79
80 END GMS_AP_API2;