[Home] [Help]
PACKAGE BODY: APPS.FA_IGI_EXT_PKG
Source
1 PACKAGE BODY FA_IGI_EXT_PKG AS
2 /* $Header: FAIGIEXB.pls 120.3.12010000.1 2008/07/28 13:12:07 appldev ship $ */
3
4 /*=========================================================================+
5 | Function Name: |
6 | Do_Current_Addition |
7 | |
8 | Description: |
9 | This IAC hook function is to process addition for IAC and called from|
10 | Depreciation program(fadcje.lpc). |
11 | |
12 +=========================================================================*/
13 FUNCTION Do_Current_Addition(
14 p_book_type_code VARCHAR2,
15 p_asset_id NUMBER,
16 p_calling_function VARCHAR2
17 ) return BOOLEAN IS
18
19 BEGIN
20 return TRUE;
21 END Do_Current_Addition;
22
23 -- Bug6391045 : Added the function Do_Addition
24 /*=========================================================================+
25 | Function Name: |
26 | Do_Addition |
27 | |
28 | Description: |
29 | This IAC hook function is to calculate catch-up at the time of |
30 | addition. IAC will encapsulate do_prior_addition call into this |
31 | do_addition call. |
32 | |
33 +=========================================================================*/
34
35 FUNCTION Do_Addition(
36 p_trans_rec FA_API_TYPES.trans_rec_type,
37 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
38 p_asset_cat_rec FA_API_TYPES.asset_cat_rec_type,
39 p_asset_desc_rec FA_API_TYPES.asset_desc_rec_type,
40 p_asset_fin_rec FA_API_TYPES.asset_fin_rec_type,
41 p_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type,
42 p_asset_type_rec FA_API_TYPES.asset_type_rec_type,
43 p_calling_function VARCHAR2
44 ) return BOOLEAN IS
45 BEGIN
46 return TRUE;
47 END Do_Addition;
48
49
50
51 /*=========================================================================+
52 | Function Name: |
53 | Do_Prior_Addition |
54 | |
55 | Description: |
56 | This IAC hook function is to process addition for IAC and called from|
57 | Depreciation program(fadp5.lpc). |
58 | |
59 +=========================================================================*/
60 /* -- Bug6391045
61 FUNCTION Do_Prior_Addition(
62 p_book_type_code VARCHAR2,
63 p_asset_id NUMBER,
64 p_category_id NUMBER,
65 p_deprn_method_code VARCHAR2,
66 p_cost NUMBER,
67 p_adjusted_cost NUMBER,
68 p_salvage_value NUMBER,
69 p_current_unit NUMBER,
70 p_life_in_months NUMBER,
71 p_calling_function VARCHAR2
72 ) return BOOLEAN IS
73 BEGIN
74 return TRUE;
75 END Do_Prior_Addition;
76 */
77
78 /*=========================================================================+
79 | Function Name: |
80 | Do_Adjustment |
81 | |
82 | Description: |
83 | This IAC hook function is to process adjustment for IAC and called |
84 | from Adjustment API(FA_ADJUSTMENT_PUB.DO_All_Books). |
85 | |
86 +=========================================================================*/
87 FUNCTION Do_Adjustment(
88 p_trans_rec FA_API_TYPES.trans_rec_type,
89 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
90 p_asset_cat_rec FA_API_TYPES.asset_cat_rec_type,
91 p_asset_desc_rec FA_API_TYPES.asset_desc_rec_type,
92 p_asset_type_rec FA_API_TYPES.asset_type_rec_type,
93 p_asset_fin_rec FA_API_TYPES.asset_fin_rec_type,
94 p_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type,
95 p_calling_function VARCHAR2
96 ) return BOOLEAN IS
97 BEGIN
98 return TRUE;
99 END Do_Adjustment;
100
101 /*=========================================================================+
102 | Function Name: |
103 | Do_Reclass |
104 | |
105 | Description: |
106 | This IAC hook function is to process reclassification for IAC and |
107 | called from Reclass API(FA_RECLASS_PVT.Do_Reclass). |
108 | |
109 +=========================================================================*/
110 FUNCTION Do_Reclass(
111 p_trans_rec FA_API_TYPES.trans_rec_type,
112 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
113 p_asset_cat_rec_old FA_API_TYPES.asset_cat_rec_type,
114 p_asset_cat_rec_new FA_API_TYPES.asset_cat_rec_type,
115 p_asset_desc_rec FA_API_TYPES.asset_desc_rec_type,
116 p_asset_type_rec FA_API_TYPES.asset_type_rec_type,
117 p_calling_function VARCHAR2
118 ) return BOOLEAN IS
119
120 BEGIN
121 return TRUE;
122 END Do_Reclass;
123
124 /*=========================================================================+
125 | Function Name: |
126 | Do_Transfer |
127 | |
128 | Description: |
129 | This IAC hook function is to process transfers for IAC and |
130 | called from Transfer API(FA_TRANSFER_PUB.Do_Transfer). |
131 | |
132 +=========================================================================*/
133 FUNCTION Do_Transfer(
134 p_trans_rec FA_API_TYPES.trans_rec_type,
135 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
136 p_asset_cat_rec FA_API_TYPES.asset_cat_rec_type,
137 p_calling_function VARCHAR2
138 ) return BOOLEAN IS
139
140 BEGIN
141 return TRUE;
142 END Do_Transfer;
143
144 /*=========================================================================+
145 | Function Name: |
146 | Do_Prior_Transfer |
147 | |
148 | Description: |
149 | This IAC hook function is to process transfers for IAC and called |
150 | from Depreciation program(fadp5.lpc). |
151 | |
152 +=========================================================================*/
153 /* -- Bug6391045
154 FUNCTION Do_Prior_Transfer(
155 p_book_type_code VARCHAR2,
156 p_asset_id NUMBER,
157 p_category_id NUMBER,
158 p_transaction_header_id NUMBER,
159 p_cost NUMBER,
160 p_adjusted_cost NUMBER,
161 p_salvage_value NUMBER,
162 p_current_unit NUMBER,
163 p_life_in_months NUMBER,
164 p_calling_function VARCHAR2
165 ) return BOOLEAN IS
166
167 BEGIN
168 return TRUE;
169 END Do_Prior_Transfer;
170
171 */
172
173 /*=========================================================================+
174 | Function Name: |
175 | Do_Unit_Adjustment |
176 | |
177 | Description: |
178 | This IAC hook function is to process unit adjustment for IAC and |
179 | called from Unit Adjustment API(FA_UNIT_ADJ_PUB.Do_Unit_Adjustment). |
180 | |
181 +=========================================================================*/
182 FUNCTION Do_Unit_Adjustment(
183 p_trans_rec FA_API_TYPES.trans_rec_type,
184 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
185 p_asset_cat_rec FA_API_TYPES.asset_cat_rec_type,
186 p_calling_function VARCHAR2
187 ) return BOOLEAN IS
188 BEGIN
189 return TRUE;
190 END Do_Unit_Adjustment;
191
192 /*=========================================================================+
193 | Function Name: |
194 | Do_Unplanned |
195 | |
196 | Description: |
197 | This IAC hook function is to process unplanned depreciation for IAC |
198 | and called from Unplanned Depreciation API |
199 | (FA_UNPLANNED_PUB.Do_Unplanned). |
200 | |
201 +=========================================================================*/
202 FUNCTION Do_Unplanned(
203 p_trans_rec FA_API_TYPES.trans_rec_type,
204 p_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type,
205 p_asset_cat_rec FA_API_TYPES.asset_cat_rec_type,
206 p_asset_desc_rec FA_API_TYPES.asset_desc_rec_type,
207 p_asset_type_rec FA_API_TYPES.asset_type_rec_type,
208 p_unplanned_deprn_rec FA_API_TYPES.unplanned_deprn_rec_type,
209 p_period_rec FA_API_TYPES.period_rec_type,
210 p_calling_function VARCHAR2
211 ) return BOOLEAN IS
212 BEGIN
213 return TRUE;
214 END Do_Unplanned;
215
216 /*=========================================================================+
217 | Function Name: |
218 | Do_Depreciation |
219 | |
220 | Description: |
221 | This IAC hook function is to process Post-Depreciation for IAC and |
222 | called from Depreciation program(fadpmn.opc). |
223 | |
224 +=========================================================================*/
225 FUNCTION Do_Depreciation(
226 p_book_type_code VARCHAR2,
227 p_period_counter NUMBER,
228 p_calling_function VARCHAR2
229 ) return BOOLEAN IS
230
231 BEGIN
232 return TRUE;
233 END Do_Depreciation;
234
235 /*=========================================================================+
236 | Function Name: |
237 | Do_Gain_Loss |
238 | |
239 | Description: |
240 | This IAC hook function is to process gain and loss calculation for |
241 | IAC and called from Gain and Loss program(fagpro.lpc). |
242 | |
243 +=========================================================================*/
244 FUNCTION Do_Gain_Loss(
245 p_retirement_id NUMBER,
246 p_asset_id NUMBER,
247 p_book_type_code VARCHAR2,
248 p_event_id NUMBER,-- Bug6391045
249 p_calling_function VARCHAR2
250 ) return BOOLEAN IS
251
252 BEGIN
253 return TRUE;
254 END Do_Gain_Loss;
255
256 /*=========================================================================+
257 | Function Name: |
258 | Do_Rollback_Deprn |
259 | |
260 | Description: |
261 | This IAC hook function is to process Rollback Depreciation for IAC |
262 | and called from Rollback Depreciation program |
263 | (FA_DEPRN_ROLLBACK_PKG.do_rollback). |
264 | |
265 +=========================================================================*/
266 -- Bug6391045 : New Signature for the function Do_Rollback_Deprn
267 FUNCTION Do_Rollback_Deprn(
268 p_asset_hdr_rec fa_api_types.asset_hdr_rec_type,
269 p_period_rec fa_api_types.period_rec_type,
270 p_deprn_run_id NUMBER,
271 p_reversal_event_id NUMBER,
272 p_reversal_date DATE,
273 p_deprn_exists_count NUMBER,
274 p_calling_function VARCHAR2
275 ) return BOOLEAN IS
276
277 BEGIN
278 return TRUE;
279 END Do_Rollback_Deprn;
280
281 /*=========================================================================+
282 | Function Name: |
283 | Do_Rollback_JE |
284 | |
285 | Description: |
286 | This IAC hook function is to process Rollback Journal Entries for |
287 | IAC and called from (FA_JE_ROLLBACK_PKG.do_rollback). |
288 | |
289 +=========================================================================*/
290 FUNCTION Do_Rollback_JE(
291 p_book_type_code VARCHAR2,
292 p_period_counter NUMBER,
293 p_set_of_books_id NUMBER,
294 p_batch_name VARCHAR2,
295 p_je_batch_id NUMBER,
296 p_calling_function VARCHAR2
297 ) return BOOLEAN IS
298
299 BEGIN
300 return TRUE;
301 END Do_Rollback_JE;
302
303
304 /*=========================================================================+
305 | Function Name: |
306 | IAC_Enabled |
307 | |
308 | Description: |
309 | This is to return flag to indicate whether subsequent IAC calls |
310 | should be made or not. |
311 | This function will return FALSE if IAC is not installed or not set |
312 | up to use IAC feature. |
313 | |
314 +=========================================================================*/
315 FUNCTION IAC_Enabled return BOOLEAN IS
316 BEGIN
317 return FALSE;
318 END IAC_Enabled;
319
320 END FA_IGI_EXT_PKG;