1 PACKAGE FA_REVALUATION_PVT AUTHID CURRENT_USER as
2 /* $Header: FAVRVLS.pls 120.3.12020000.2 2012/11/30 13:57:17 gigupta ship $ */
3
4 FUNCTION do_reval
5 (px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
6 px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7 p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
8 p_asset_type_rec IN FA_API_TYPES.asset_type_rec_type,
9 p_asset_cat_rec IN FA_API_TYPES.asset_cat_rec_type,
10 p_asset_fin_rec_old IN FA_API_TYPES.asset_fin_rec_type,
11 p_asset_deprn_rec_old IN FA_API_TYPES.asset_deprn_rec_type,
12 p_period_rec IN FA_API_TYPES.period_rec_type,
13 p_mrc_sob_type_code IN VARCHAR2,
14 p_reval_options_rec IN FA_API_TYPES.reval_options_rec_type,
15 p_calling_fn IN VARCHAR2
16 , p_log_level_rec IN FA_API_TYPES.log_level_rec_type)
17 RETURN BOOLEAN ;
18
19 -----------------------------------------------------------------------------------
20
21 -- this function contains validation for reval on an asset
22
23 FUNCTION validate_reval
24 (p_trans_rec IN FA_API_TYPES.trans_rec_type,
25 p_asset_hdr_rec IN FA_API_TYPES.asset_hdr_rec_type,
26 p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
27 p_asset_type_rec IN FA_API_TYPES.asset_type_rec_type,
28 p_asset_cat_rec IN FA_API_TYPES.asset_cat_rec_type,
29 p_asset_fin_rec_old IN FA_API_TYPES.asset_fin_rec_type,
30 p_asset_deprn_rec_old IN FA_API_TYPES.asset_deprn_rec_type,
31 p_reval_options_rec IN FA_API_TYPES.reval_options_rec_type
32 , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) RETURN BOOLEAN;
33
34 FUNCTION fareven
35 (px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
36 p_asset_hdr_rec IN FA_API_TYPES.asset_hdr_rec_type,
37 p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
38 p_asset_type_rec IN FA_API_TYPES.asset_type_rec_type,
39 p_asset_cat_rec IN FA_API_TYPES.asset_cat_rec_type,
40 p_asset_fin_rec_old IN FA_API_TYPES.asset_fin_rec_type,
41 px_asset_fin_rec_new IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
42 p_asset_deprn_rec_old IN FA_API_TYPES.asset_deprn_rec_type,
43 px_asset_deprn_rec_new IN OUT NOCOPY FA_API_TYPES.asset_deprn_rec_type,
44 p_period_rec IN FA_API_TYPES.period_rec_type,
45 p_mrc_sob_type_code IN VARCHAR2,
46 p_reval_options_rec IN FA_API_TYPES.reval_options_rec_type,
47 x_reval_out OUT NOCOPY fa_std_types.reval_out_struct
48 , p_log_level_rec IN FA_API_TYPES.log_level_rec_type)
49 RETURN BOOLEAN;
50 FUNCTION reval_loss (
51 px_trans_rec IN OUT NOCOPY fa_api_types.trans_rec_type,
52 p_asset_hdr_rec IN fa_api_types.asset_hdr_rec_type,
53 p_asset_desc_rec IN fa_api_types.asset_desc_rec_type,
54 p_asset_type_rec IN fa_api_types.asset_type_rec_type,
55 p_asset_cat_rec IN fa_api_types.asset_cat_rec_type,
56 p_asset_fin_rec_old IN fa_api_types.asset_fin_rec_type,
57 px_asset_fin_rec_new IN OUT NOCOPY fa_api_types.asset_fin_rec_type,
58 p_asset_deprn_rec_old IN fa_api_types.asset_deprn_rec_type,
59 px_asset_deprn_rec_new IN OUT NOCOPY fa_api_types.asset_deprn_rec_type,
60 p_period_rec IN fa_api_types.period_rec_type,
61 p_mrc_sob_type_code IN VARCHAR2,
62 p_reval_options_rec IN fa_api_types.reval_options_rec_type,
63 x_reval_out OUT NOCOPY fa_std_types.reval_out_struct,
64 p_log_level_rec IN fa_api_types.log_level_rec_type)
65 RETURN BOOLEAN;
66 /*ER 14644811 */
67 FUNCTION process_depreciation
68 (p_trans_rec IN FA_API_TYPES.trans_rec_type,
69 p_asset_hdr_rec IN FA_API_TYPES.asset_hdr_rec_type,
70 p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
71 p_asset_type_rec IN FA_API_TYPES.asset_type_rec_type,
72 p_asset_cat_rec IN FA_API_TYPES.asset_cat_rec_type,
73 p_period_rec IN FA_API_TYPES.period_rec_type,
74 px_asset_fin_rec_old IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
75 px_asset_deprn_rec_old IN OUT NOCOPY FA_API_TYPES.asset_deprn_rec_type,
76 p_reval_options_rec IN FA_API_TYPES.reval_options_rec_type,
77 p_mrc_sob_type_code IN VARCHAR2,
78 p_log_level_rec IN FA_API_TYPES.log_level_rec_type) RETURN BOOLEAN;
79
80 -- ER 14644811
81 FUNCTION rollback_reval
82 (p_asset_hdr_rec IN FA_API_TYPES.asset_hdr_rec_type,
83 p_thid IN NUMBER,
84 p_event_id IN NUMBER,
85 p_mrc_sob_type_code IN VARCHAR2,
86 p_calling_fn IN VARCHAR2,
87 p_log_level_rec IN FA_API_TYPES.log_level_rec_type)
88 RETURN BOOLEAN ;
89
90 END FA_REVALUATION_PVT;