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