1 PACKAGE INV_MGD_MVT_SO_MDTR AUTHID CURRENT_USER AS
2 /* $Header: INVSMDRS.pls 120.0.12010000.1 2008/07/24 01:47:09 appldev ship $ */
3 --+=======================================================================+
4 --| Copyright (c) 1998 Oracle Corporation |
5 --| Redwood Shores, CA, USA |
6 --| All rights reserved. |
7 --+=======================================================================+
8 --| FILENAME |
9 --| INVSMDRS.pls |
10 --| |
11 --| DESCRIPTION |
12 --| Spec. of INV_MGD_MVT_SO_MDTR |
13 --| Get_SO_Transactions |
14 --| Get_TwoLeOneCntry_Txns |
15 --| Get_Triangulation_Txns |
16 --| Update_SO_Transaction |
17 --| Update_KIT_SO_Transaction |
18 --| Get_SO_Details |
19 --| Get_IO_Details |
20 --| Get_KIT_Status |
21 --| Get_KIT_Triangulation_Status |
22 --| Get_KIT_SO_Details |
23 --| |
24 --| HISTORY |
25 --+======================================================================*/
26
27
28 --========================================================================
29 -- PROCEDURE : Get_SO_Transactions PRIVATE
30 -- PARAMETERS: so_crsr REF cursor
31 -- x_return_status return status
32 -- p_start_date Transaction start date
33 -- p_end_date Transaction end date
34 -- COMMENT :
35 -- This opens the cursor for SO and returns the cursor.
36 --========================================================================
37
38 PROCEDURE Get_SO_Transactions
39 ( so_crsr IN OUT NOCOPY INV_MGD_MVT_DATA_STR.soCurTyp
40 , p_movement_transaction IN INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
41 , p_start_date IN DATE
42 , p_end_date IN DATE
43 , x_return_status OUT NOCOPY VARCHAR2
44 );
45
46 --========================================================================
47 -- PROCEDURE : Get_TwoLeOneCntry_Txns PRIVATE
48 -- PARAMETERS: so_crsr REF cursor
49 -- x_return_status return status
50 -- p_start_date Transaction start date
51 -- p_end_date Transaction end date
52 -- COMMENT :
53 -- This opens the cursor for SO and returns the cursor.
54 --========================================================================
55
56 PROCEDURE Get_TwoLeOneCntry_Txns
57 ( sot_crsr IN OUT NOCOPY INV_MGD_MVT_DATA_STR.soCurTyp
58 , p_movement_transaction IN
59 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
60 , p_start_date IN DATE
61 , p_end_date IN DATE
62 , x_return_status OUT NOCOPY VARCHAR2
63 );
64
65
66 --========================================================================
67 -- PROCEDURE : Get_Triangulation_Txns PRIVATE
68 -- PARAMETERS: so_crsr REF cursor
69 -- x_return_status return status
70 -- p_start_date Transaction start date
71 -- p_end_date Transaction end date
72 -- COMMENT :
73 -- This opens the cursor for SO and returns the cursor.
74 --========================================================================
75
76 PROCEDURE Get_Triangulation_Txns
77 ( sot_crsr IN OUT NOCOPY INV_MGD_MVT_DATA_STR.soCurTyp
78 , p_movement_transaction IN
79 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
80 , p_start_date IN DATE
81 , p_end_date IN DATE
82 , x_return_status OUT NOCOPY VARCHAR2
83 );
84
85 --========================================================================
86 -- PROCEDURE : Update_SO_Transactions PRIVATE
87 -- PARAMETERS: x_return_status return status
88 -- p_movement_transaction movement transaction record
89 -- COMMENT : Update the status of the transaction record to PROCESSED
90 --========================================================================
91
92 PROCEDURE Update_SO_Transactions
93 ( p_movement_transaction IN
94 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
95 , p_status IN VARCHAR2
96 , x_return_status OUT NOCOPY VARCHAR2
97 );
98
99
100 --========================================================================
101 -- PROCEDURE : Update_KIT_SO_Transactions PRIVATE
102 -- PARAMETERS: x_return_status return status
103 -- p_movement_transaction movement transaction record
104 -- COMMENT : Update the status of the transaction record to PROCESSED
105 --========================================================================
106
107 PROCEDURE Update_KIT_SO_Transactions
108 ( p_movement_id IN NUMBER
109 , p_delivery_detail_id IN NUMBER
110 , p_link_to_line_id IN NUMBER
111 , p_status IN VARCHAR2
112 , x_return_status OUT NOCOPY VARCHAR2
113 );
114
115
116 --========================================================================
117 -- PROCEDURE : Get_SO_Details PRIVATE
118 -- PARAMETERS: x_return_status return status
119 -- p_movement_transaction movement transaction record
120 -- COMMENT : Get all the additional data required for SO
121 --========================================================================
122
123 PROCEDURE Get_SO_Details
124 ( x_movement_transaction IN OUT NOCOPY
125 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
126 , x_return_status OUT NOCOPY VARCHAR2
127 );
128
129 --========================================================================
130 -- PROCEDURE : Get_KIT_SO_Details PRIVATE
131 -- PARAMETERS: x_movement_transaction movement transaction record
132 -- p_link_to_line_id parent line id
133 -- COMMENT : Get all the additional data required for KIT SO
134 --========================================================================
135 PROCEDURE Get_KIT_SO_Details
136 ( p_link_to_line_id IN VARCHAR2
137 , x_movement_transaction IN OUT NOCOPY
138 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
139 );
140
141 --========================================================================
142 -- PROCEDURE : Get_IO_Details PRIVATE
143 -- PARAMETERS: x_return_status return status
144 -- p_movement_transaction movement transaction record
145 -- COMMENT : Get all the additional data required for IO
146 --========================================================================
147
148 PROCEDURE Get_IO_Details
149 ( x_movement_transaction IN OUT NOCOPY
150 INV_MGD_MVT_DATA_STR.Movement_Transaction_Rec_Type
151 , x_return_status OUT NOCOPY VARCHAR2
152 );
153
154 --========================================================================
155 -- FUNCTION : Get_KIT_Status
156 -- PARAMETERS: p_delivery_detail_id delivery detail id
157 -- COMMENT : Function that returns the status of a movement kit record.
158 -- if a movement record for kit has been created, the status
159 -- returned is 'Y', otherwise return 'N'
160 --=========================================================================
161
162 FUNCTION Get_KIT_Status
163 ( p_delivery_detail_id IN NUMBER
164 )
165 RETURN VARCHAR2;
166
167 --========================================================================
168 -- FUNCTION : Get_KIT_Triangulation_Status
169 -- PARAMETERS: p_delivery_detail_id delivery detail id
170 -- COMMENT : Function that returns the status of a movement kit record.
171 -- if a movement record for kit has been created, the status
172 -- returned is 'Y', otherwise return 'N'
173 --=========================================================================
174
175 FUNCTION Get_KIT_Triangulation_Status
176 ( p_delivery_detail_id IN NUMBER
177 )
178 RETURN VARCHAR2;
179
180 END INV_MGD_MVT_SO_MDTR;