5: G_PKG_NAME CONSTANT varchar2(30) := 'FA_RETIREMENT_PUB';
6: G_API_NAME CONSTANT varchar2(30) := 'Retirement API';
7: G_API_VERSION CONSTANT number := 1.0;
8:
9: g_log_level_rec fa_api_types.log_level_rec_type;
10:
11: g_release number := fa_cache_pkg.fazarel_release;
12:
13: -- l_calling_fn VARCHAR2(100) := 'FA_RETIREMENT_PUB';
31: g_value2 varchar2(80) := null;
32:
33: /*
34: * Added for Group Asset uptake
35: * g_inv_trans_rec to pass FA_API_TYPES.inv_trans_rec
36: * when calling FA_GROUP_RETIREMENT_PVT.DO_RETIREMENT
37: * This is necessary without passing this value from
38: * Do_Retirement to do_sub_regular_retirement
39: */
36: * when calling FA_GROUP_RETIREMENT_PVT.DO_RETIREMENT
37: * This is necessary without passing this value from
38: * Do_Retirement to do_sub_regular_retirement
39: */
40: g_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
41: /*** End uptake ***/
42:
43: FUNCTION do_all_books_retirement
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
40: g_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
41: /*** End uptake ***/
42:
43: FUNCTION do_all_books_retirement
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
41: /*** End uptake ***/
42:
43: FUNCTION do_all_books_retirement
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
42:
43: FUNCTION do_all_books_retirement
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
43: FUNCTION do_all_books_retirement
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
44: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
45: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
46: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
47: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
48: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
49: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
57: FUNCTION do_sub_retirement
50: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
51: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
52: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
53: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
54: ,p_period_rec in FA_API_TYPES.period_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
55: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
56:
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
56:
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
57: FUNCTION do_sub_retirement
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
58: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
59: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
60: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
61: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
62: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
63: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
71:
64: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
65: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
71:
72: FUNCTION do_sub_regular_retirement
66: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
67: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
68: ,p_period_rec in FA_API_TYPES.period_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
71:
72: FUNCTION do_sub_regular_retirement
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
69: ,p_mrc_sob_type_code in VARCHAR2
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
71:
72: FUNCTION do_sub_regular_retirement
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
70: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
71:
72: FUNCTION do_sub_regular_retirement
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
71:
72: FUNCTION do_sub_regular_retirement
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
72: FUNCTION do_sub_regular_retirement
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
73: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
74: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
82: ,p_mrc_sob_type_code in VARCHAR2
75: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
82: ,p_mrc_sob_type_code in VARCHAR2
83: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
76: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
82: ,p_mrc_sob_type_code in VARCHAR2
83: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
84:
77: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
78: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
82: ,p_mrc_sob_type_code in VARCHAR2
83: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
84:
85: FUNCTION calculate_gain_loss
79: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
80: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
81: ,p_period_rec in FA_API_TYPES.period_rec_type
82: ,p_mrc_sob_type_code in VARCHAR2
83: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
84:
85: FUNCTION calculate_gain_loss
86: (p_retirement_id in number
87: ,p_mrc_sob_type_code in varchar2
84:
85: FUNCTION calculate_gain_loss
86: (p_retirement_id in number
87: ,p_mrc_sob_type_code in varchar2
88: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
89:
90: FUNCTION do_all_books_reinstatement
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
87: ,p_mrc_sob_type_code in varchar2
88: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
89:
90: FUNCTION do_all_books_reinstatement
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
88: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
89:
90: FUNCTION do_all_books_reinstatement
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
89:
90: FUNCTION do_all_books_reinstatement
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
90: FUNCTION do_all_books_reinstatement
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
91: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
92: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
93: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
94: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
95: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
103: FUNCTION do_sub_reinstatement
96: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
97: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
98: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
99: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
100: ,p_period_rec in FA_API_TYPES.period_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
101: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
102:
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
102:
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
103: FUNCTION do_sub_reinstatement
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
104: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
105: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
106: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
114: ,p_rate in number
107: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
114: ,p_rate in number
115: ,p_mrc_sob_type_code in VARCHAR2
108: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
114: ,p_rate in number
115: ,p_mrc_sob_type_code in VARCHAR2
116: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
109: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
110: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
111: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
114: ,p_rate in number
115: ,p_mrc_sob_type_code in VARCHAR2
116: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
117:
112: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
113: ,p_period_rec in FA_API_TYPES.period_rec_type
114: ,p_rate in number
115: ,p_mrc_sob_type_code in VARCHAR2
116: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
117:
118: FUNCTION do_sub_regular_reinstatement
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
115: ,p_mrc_sob_type_code in VARCHAR2
116: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
117:
118: FUNCTION do_sub_regular_reinstatement
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
116: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
117:
118: FUNCTION do_sub_regular_reinstatement
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
117:
118: FUNCTION do_sub_regular_reinstatement
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
118: FUNCTION do_sub_regular_reinstatement
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
119: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
120: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
121: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
122: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
123: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
131:
124: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
125: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
131:
132: FUNCTION undo_all_books_retirement
126: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
127: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
128: ,p_period_rec in FA_API_TYPES.period_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
131:
132: FUNCTION undo_all_books_retirement
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
129: ,p_mrc_sob_type_code in VARCHAR2
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
131:
132: FUNCTION undo_all_books_retirement
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
135: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
130: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
131:
132: FUNCTION undo_all_books_retirement
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
135: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
131:
132: FUNCTION undo_all_books_retirement
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
135: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
139: FUNCTION undo_sub_retirement
132: FUNCTION undo_all_books_retirement
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
135: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
139: FUNCTION undo_sub_retirement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
133: (p_trans_rec in FA_API_TYPES.trans_rec_type
134: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
135: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
139: FUNCTION undo_sub_retirement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
141: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
136: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
139: FUNCTION undo_sub_retirement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
141: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
142: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
143: ,p_mrc_sob_type_code in VARCHAR2
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
137: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
138:
139: FUNCTION undo_sub_retirement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
141: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
142: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
143: ,p_mrc_sob_type_code in VARCHAR2
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
145:
138:
139: FUNCTION undo_sub_retirement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
141: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
142: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
143: ,p_mrc_sob_type_code in VARCHAR2
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
145:
146: FUNCTION undo_all_books_reinstatement
140: (p_trans_rec in FA_API_TYPES.trans_rec_type
141: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
142: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
143: ,p_mrc_sob_type_code in VARCHAR2
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
145:
146: FUNCTION undo_all_books_reinstatement
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
143: ,p_mrc_sob_type_code in VARCHAR2
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
145:
146: FUNCTION undo_all_books_reinstatement
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
149: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
144: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
145:
146: FUNCTION undo_all_books_reinstatement
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
149: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
145:
146: FUNCTION undo_all_books_reinstatement
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
149: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
153: FUNCTION undo_sub_reinstatement
146: FUNCTION undo_all_books_reinstatement
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
149: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
153: FUNCTION undo_sub_reinstatement
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
147: (p_trans_rec in FA_API_TYPES.trans_rec_type
148: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
149: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
153: FUNCTION undo_sub_reinstatement
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
155: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
150: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
153: FUNCTION undo_sub_reinstatement
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
155: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
156: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
157: ,p_mrc_sob_type_code in VARCHAR2
158: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
151: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
152:
153: FUNCTION undo_sub_reinstatement
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
155: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
156: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
157: ,p_mrc_sob_type_code in VARCHAR2
158: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
159:
152:
153: FUNCTION undo_sub_reinstatement
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
155: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
156: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
157: ,p_mrc_sob_type_code in VARCHAR2
158: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
159:
160: FUNCTION do_validation
154: (p_trans_rec in FA_API_TYPES.trans_rec_type
155: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
156: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
157: ,p_mrc_sob_type_code in VARCHAR2
158: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
159:
160: FUNCTION do_validation
161: (p_validation_type in varchar2
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
158: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
159:
160: FUNCTION do_validation
161: (p_validation_type in varchar2
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
159:
160: FUNCTION do_validation
161: (p_validation_type in varchar2
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
160: FUNCTION do_validation
161: (p_validation_type in varchar2
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
161: (p_validation_type in varchar2
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
162: ,p_trans_rec in FA_API_TYPES.trans_rec_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
163: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
164: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
172: ,p_calling_fn in varchar2
165: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
172: ,p_calling_fn in varchar2
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
166: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
172: ,p_calling_fn in varchar2
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
174:
167: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
168: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
172: ,p_calling_fn in varchar2
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
174:
175: FUNCTION reinstate_src_line(
169: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
170: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
171: ,p_period_rec in FA_API_TYPES.period_rec_type
172: ,p_calling_fn in varchar2
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
174:
175: FUNCTION reinstate_src_line(
176: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
172: ,p_calling_fn in varchar2
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
174:
175: FUNCTION reinstate_src_line(
176: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
178: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
173: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
174:
175: FUNCTION reinstate_src_line(
176: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
178: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
181: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
174:
175: FUNCTION reinstate_src_line(
176: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
178: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
181: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
182: p_rowid IN ROWID,
175: FUNCTION reinstate_src_line(
176: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
178: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
181: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
182: p_rowid IN ROWID,
183: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
177: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
178: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
181: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
182: p_rowid IN ROWID,
183: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
184:
185: ------------------------------------------------------------------------------
179: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
180: p_invoice_transaction_id IN NUMBER,
181: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
182: p_rowid IN ROWID,
183: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN;
184:
185: ------------------------------------------------------------------------------
186: PROCEDURE do_retirement
187: (p_api_version in NUMBER
192: ,x_return_status out NOCOPY VARCHAR2
193: ,x_msg_count out NOCOPY NUMBER
194: ,x_msg_data out NOCOPY VARCHAR2
195:
196: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
193: ,x_msg_count out NOCOPY NUMBER
194: ,x_msg_data out NOCOPY VARCHAR2
195:
196: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
194: ,x_msg_data out NOCOPY VARCHAR2
195:
196: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
195:
196: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
196: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
204: -- local asset info
197: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
198: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
199: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
200: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
201: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
202: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type) IS
203:
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
203:
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
204: -- local asset info
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
205: l_trans_rec FA_API_TYPES.trans_rec_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
206: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
207: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
215: l_period_rec FA_API_TYPES.period_rec_type;
208: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
215: l_period_rec FA_API_TYPES.period_rec_type;
216:
209: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
215: l_period_rec FA_API_TYPES.period_rec_type;
216:
217: -- used for loop through tax books
210: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
215: l_period_rec FA_API_TYPES.period_rec_type;
216:
217: -- used for loop through tax books
218: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
211: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
212: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
213: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
214: l_inv_tbl FA_API_TYPES.inv_tbl_type;
215: l_period_rec FA_API_TYPES.period_rec_type;
216:
217: -- used for loop through tax books
218: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
219: l_tax_index number;
218: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
219: l_tax_index number;
220:
221: -- used for tax books when doing cip-in-tax or autocopy
222: lv_trans_rec FA_API_TYPES.trans_rec_type;
223: lv_dist_trans_rec FA_API_TYPES.trans_rec_type;
224: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
225: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
226:
219: l_tax_index number;
220:
221: -- used for tax books when doing cip-in-tax or autocopy
222: lv_trans_rec FA_API_TYPES.trans_rec_type;
223: lv_dist_trans_rec FA_API_TYPES.trans_rec_type;
224: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
225: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
226:
227: -- local individual variables
220:
221: -- used for tax books when doing cip-in-tax or autocopy
222: lv_trans_rec FA_API_TYPES.trans_rec_type;
223: lv_dist_trans_rec FA_API_TYPES.trans_rec_type;
224: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
225: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
226:
227: -- local individual variables
228: l_transaction_type varchar2(30) := null;
221: -- used for tax books when doing cip-in-tax or autocopy
222: lv_trans_rec FA_API_TYPES.trans_rec_type;
223: lv_dist_trans_rec FA_API_TYPES.trans_rec_type;
224: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
225: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
226:
227: -- local individual variables
228: l_transaction_type varchar2(30) := null;
229: l_reporting_flag varchar2(1);
241:
242: /*
243: * Added for Group Asset uptake
244: */
245: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
246: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
247: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
248: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
249: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
242: /*
243: * Added for Group Asset uptake
244: */
245: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
246: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
247: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
248: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
249: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
250: /*** End of uptake ***/
243: * Added for Group Asset uptake
244: */
245: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
246: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
247: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
248: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
249: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
250: /*** End of uptake ***/
251:
244: */
245: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
246: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
247: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
248: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
249: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
250: /*** End of uptake ***/
251:
252: -- used to store original sob info upon entry into api
245: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
246: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
247: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
248: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
249: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
250: /*** End of uptake ***/
251:
252: -- used to store original sob info upon entry into api
253: l_orig_set_of_books_id number;
1191:
1192: END do_retirement;
1193:
1194: FUNCTION do_all_books_retirement
1195: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1192: END do_retirement;
1193:
1194: FUNCTION do_all_books_retirement
1195: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1193:
1194: FUNCTION do_all_books_retirement
1195: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1194: FUNCTION do_all_books_retirement
1195: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1195: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1196: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1197: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1198: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1206: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1199: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1206: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1207: -- will return retirement_id of asset_retire_rec
1200: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1206: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1207: -- will return retirement_id of asset_retire_rec
1208: IS
1201: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1206: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1207: -- will return retirement_id of asset_retire_rec
1208: IS
1209:
1202: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1203: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1204: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1205: ,p_period_rec in FA_API_TYPES.period_rec_type
1206: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1207: -- will return retirement_id of asset_retire_rec
1208: IS
1209:
1210: -- Returns the reporting GL set_of_books_ids
1223: l_distribution_source_book varchar2(30);
1224: l_mc_source_flag varchar2(1);
1225:
1226: -- local asset info
1227: l_trans_rec FA_API_TYPES.trans_rec_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1224: l_mc_source_flag varchar2(1);
1225:
1226: -- local asset info
1227: l_trans_rec FA_API_TYPES.trans_rec_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1225:
1226: -- local asset info
1227: l_trans_rec FA_API_TYPES.trans_rec_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1226: -- local asset info
1227: l_trans_rec FA_API_TYPES.trans_rec_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1227: l_trans_rec FA_API_TYPES.trans_rec_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1228: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1229: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1230: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1238:
1231: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1238:
1239: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;
1232: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1238:
1239: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;
1240:
1233: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1234: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1235: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1236: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1238:
1239: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;
1240:
1241: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1237: l_period_rec FA_API_TYPES.period_rec_type;
1238:
1239: l_sob_tbl FA_CACHE_PKG.fazcrsob_sob_tbl_type;
1240:
1241: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1242:
1243: -- local individual variables
1244: l_latest_trans_date date;
1245: l_ret_prorate_date date;
1260: -- msg
1261: g_msg_name varchar2(30);
1262:
1263: --secondary changes
1264: l_secondary_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1265: l_secondary_trans_rec FA_API_TYPES.trans_rec_type;
1266: l_seondary_sob_id number;
1267:
1268: l_calling_fn varchar2(80) := 'FA_RETIREMENT_PUB.do_all_books_retirement';
1261: g_msg_name varchar2(30);
1262:
1263: --secondary changes
1264: l_secondary_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1265: l_secondary_trans_rec FA_API_TYPES.trans_rec_type;
1266: l_seondary_sob_id number;
1267:
1268: l_calling_fn varchar2(80) := 'FA_RETIREMENT_PUB.do_all_books_retirement';
1269:
1787: END do_all_books_retirement;
1788:
1789:
1790: FUNCTION do_sub_retirement
1791: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1788:
1789:
1790: FUNCTION do_sub_retirement
1791: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1789:
1790: FUNCTION do_sub_retirement
1791: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1790: FUNCTION do_sub_retirement
1791: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1791: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1792: ,px_dist_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1793: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1794: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1802: ,p_mrc_sob_type_code in VARCHAR2
1795: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1802: ,p_mrc_sob_type_code in VARCHAR2
1803: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1796: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1802: ,p_mrc_sob_type_code in VARCHAR2
1803: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1804: -- will return retirement_id of px_asset_retire_rec
1797: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
1798: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1802: ,p_mrc_sob_type_code in VARCHAR2
1803: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1804: -- will return retirement_id of px_asset_retire_rec
1805: IS
1799: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
1800: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
1801: ,p_period_rec in FA_API_TYPES.period_rec_type
1802: ,p_mrc_sob_type_code in VARCHAR2
1803: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
1804: -- will return retirement_id of px_asset_retire_rec
1805: IS
1806:
1807: -- local asset info
1804: -- will return retirement_id of px_asset_retire_rec
1805: IS
1806:
1807: -- local asset info
1808: l_trans_rec FA_API_TYPES.trans_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1805: IS
1806:
1807: -- local asset info
1808: l_trans_rec FA_API_TYPES.trans_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1806:
1807: -- local asset info
1808: l_trans_rec FA_API_TYPES.trans_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1807: -- local asset info
1808: l_trans_rec FA_API_TYPES.trans_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1808: l_trans_rec FA_API_TYPES.trans_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1809: l_dist_trans_rec FA_API_TYPES.trans_rec_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1810: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1811: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1812: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1813: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1821:
1814: l_asset_fin_mrc_rec FA_API_TYPES.asset_fin_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1821:
1822: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
1815: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1821:
1822: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
1823:
1816: l_asset_retire_mrc_rec FA_API_TYPES.asset_retire_rec_type;
1817: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1821:
1822: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
1823:
1824: l_rate number;
1818: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
1819: l_inv_tbl FA_API_TYPES.inv_tbl_type;
1820: l_period_rec FA_API_TYPES.period_rec_type;
1821:
1822: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
1823:
1824: l_rate number;
1825:
1826: l_fraction_remaining number;
2223:
2224: END do_sub_retirement;
2225:
2226: FUNCTION do_sub_regular_retirement
2227: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2224: END do_sub_retirement;
2225:
2226: FUNCTION do_sub_regular_retirement
2227: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2225:
2226: FUNCTION do_sub_regular_retirement
2227: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2226: FUNCTION do_sub_regular_retirement
2227: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2227: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2228: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2236: ,p_mrc_sob_type_code in VARCHAR2
2229: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2236: ,p_mrc_sob_type_code in VARCHAR2
2237: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
2230: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2236: ,p_mrc_sob_type_code in VARCHAR2
2237: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
2238: IS
2231: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
2232: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2236: ,p_mrc_sob_type_code in VARCHAR2
2237: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
2238: IS
2239:
2233: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
2234: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
2235: ,p_period_rec in FA_API_TYPES.period_rec_type
2236: ,p_mrc_sob_type_code in VARCHAR2
2237: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
2238: IS
2239:
2240: p_sob_id number;
2241: p_book_type_code varchar2(30);
2352: and mt.deprn_basis_rule_id = db.deprn_basis_rule_id; -- ENERGY
2353:
2354:
2355: -- local asset info
2356: l_trans_rec FA_API_TYPES.trans_rec_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2353:
2354:
2355: -- local asset info
2356: l_trans_rec FA_API_TYPES.trans_rec_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2354:
2355: -- local asset info
2356: l_trans_rec FA_API_TYPES.trans_rec_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2355: -- local asset info
2356: l_trans_rec FA_API_TYPES.trans_rec_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2356: l_trans_rec FA_API_TYPES.trans_rec_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2357: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2358: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2359: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2367:
2360: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2367:
2368: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
2361: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2367:
2368: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
2369:
2362: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
2363: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2367:
2368: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
2369:
2370: l_rowid ROWID;
2364: l_inv_tbl FA_API_TYPES.inv_tbl_type;
2365: l_period_rec FA_API_TYPES.period_rec_type;
2366: l_asset_deprn_rec FA_API_TYPES.asset_deprn_rec_type;
2367:
2368: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
2369:
2370: l_rowid ROWID;
2371: l_Fraction_Remaining number;
2372: l_deprn_rounding_flag varchar2(30);
3316:
3317: FUNCTION calculate_gain_loss
3318: (p_retirement_id in number
3319: ,p_mrc_sob_type_code in VARCHAR2
3320: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3321: IS
3322:
3323: l_return_status number := 0;
3324:
3379: ,x_return_status out NOCOPY VARCHAR2
3380: ,x_msg_count out NOCOPY NUMBER
3381: ,x_msg_data out NOCOPY VARCHAR2
3382:
3383: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
3384: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
3385: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
3386: IS
3387: -- local asset info
3380: ,x_msg_count out NOCOPY NUMBER
3381: ,x_msg_data out NOCOPY VARCHAR2
3382:
3383: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
3384: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
3385: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
3386: IS
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3381: ,x_msg_data out NOCOPY VARCHAR2
3382:
3383: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
3384: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
3385: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
3386: IS
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3384: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
3385: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
3386: IS
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3385: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
3386: IS
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3386: IS
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3387: -- local asset info
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3388: l_trans_rec FA_API_TYPES.trans_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3389: lv_trans_rec FA_API_TYPES.trans_rec_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3390: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3391: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3392: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3400: l_period_rec FA_API_TYPES.period_rec_type;
3393: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3400: l_period_rec FA_API_TYPES.period_rec_type;
3401:
3394: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3400: l_period_rec FA_API_TYPES.period_rec_type;
3401:
3402: -- used to loop through tax books
3395: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3400: l_period_rec FA_API_TYPES.period_rec_type;
3401:
3402: -- used to loop through tax books
3403: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
3396: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3397: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
3398: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
3399: l_inv_tbl FA_API_TYPES.inv_tbl_type;
3400: l_period_rec FA_API_TYPES.period_rec_type;
3401:
3402: -- used to loop through tax books
3403: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
3404: l_tax_index number; -- index for tax loop
3695: END undo_retirement;
3696: -----------------------------------------------------------------------------
3697:
3698: FUNCTION undo_all_books_retirement
3699: (p_trans_rec in FA_API_TYPES.trans_rec_type
3700: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3701: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
3702: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3703: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3696: -----------------------------------------------------------------------------
3697:
3698: FUNCTION undo_all_books_retirement
3699: (p_trans_rec in FA_API_TYPES.trans_rec_type
3700: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3701: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
3702: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3703: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3704: IS
3697:
3698: FUNCTION undo_all_books_retirement
3699: (p_trans_rec in FA_API_TYPES.trans_rec_type
3700: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3701: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
3702: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3703: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3704: IS
3705:
3698: FUNCTION undo_all_books_retirement
3699: (p_trans_rec in FA_API_TYPES.trans_rec_type
3700: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3701: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
3702: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3703: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3704: IS
3705:
3706: -- Returns the reporting GL set_of_books_ids
3699: (p_trans_rec in FA_API_TYPES.trans_rec_type
3700: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3701: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8630242
3702: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3703: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3704: IS
3705:
3706: -- Returns the reporting GL set_of_books_ids
3707: -- associated with the set_of_books_id of given primary book_type_code
3719: l_distribution_source_book varchar2(30);
3720: l_mc_source_flag varchar2(1);
3721:
3722: -- local asset info
3723: l_trans_rec FA_API_TYPES.trans_rec_type;
3724: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3725: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3726: l_period_rec FA_API_TYPES.period_rec_type;
3727: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
3720: l_mc_source_flag varchar2(1);
3721:
3722: -- local asset info
3723: l_trans_rec FA_API_TYPES.trans_rec_type;
3724: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3725: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3726: l_period_rec FA_API_TYPES.period_rec_type;
3727: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
3728:
3721:
3722: -- local asset info
3723: l_trans_rec FA_API_TYPES.trans_rec_type;
3724: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3725: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3726: l_period_rec FA_API_TYPES.period_rec_type;
3727: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
3728:
3729: l_ins_status boolean := FALSE;
3722: -- local asset info
3723: l_trans_rec FA_API_TYPES.trans_rec_type;
3724: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3725: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3726: l_period_rec FA_API_TYPES.period_rec_type;
3727: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
3728:
3729: l_ins_status boolean := FALSE;
3730:
3723: l_trans_rec FA_API_TYPES.trans_rec_type;
3724: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3725: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3726: l_period_rec FA_API_TYPES.period_rec_type;
3727: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
3728:
3729: l_ins_status boolean := FALSE;
3730:
3731: l_retirement_id number(15);
3919: END undo_all_books_retirement;
3920: ------------------------------------------------------------------------------
3921:
3922: FUNCTION undo_sub_retirement
3923: (p_trans_rec in FA_API_TYPES.trans_rec_type
3924: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3925: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3926: ,p_mrc_sob_type_code in VARCHAR2
3927: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3920: ------------------------------------------------------------------------------
3921:
3922: FUNCTION undo_sub_retirement
3923: (p_trans_rec in FA_API_TYPES.trans_rec_type
3924: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3925: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3926: ,p_mrc_sob_type_code in VARCHAR2
3927: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3928: IS
3921:
3922: FUNCTION undo_sub_retirement
3923: (p_trans_rec in FA_API_TYPES.trans_rec_type
3924: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3925: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3926: ,p_mrc_sob_type_code in VARCHAR2
3927: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3928: IS
3929:
3923: (p_trans_rec in FA_API_TYPES.trans_rec_type
3924: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
3925: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
3926: ,p_mrc_sob_type_code in VARCHAR2
3927: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
3928: IS
3929:
3930: transfer_id number(15);
3931: l_trans_units number;
3935:
3936: l_old_cost number;
3937: l_old_units number;
3938: -- local asset info
3939: l_trans_rec FA_API_TYPES.trans_rec_type;
3940: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3941: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3942: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3943: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3936: l_old_cost number;
3937: l_old_units number;
3938: -- local asset info
3939: l_trans_rec FA_API_TYPES.trans_rec_type;
3940: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3941: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3942: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3943: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3944:
3937: l_old_units number;
3938: -- local asset info
3939: l_trans_rec FA_API_TYPES.trans_rec_type;
3940: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3941: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3942: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3943: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3944:
3945: cursor get_transfer_id is
3938: -- local asset info
3939: l_trans_rec FA_API_TYPES.trans_rec_type;
3940: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3941: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3942: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3943: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3944:
3945: cursor get_transfer_id is
3946: select transaction_header_id_out
3939: l_trans_rec FA_API_TYPES.trans_rec_type;
3940: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
3941: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
3942: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
3943: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
3944:
3945: cursor get_transfer_id is
3946: select transaction_header_id_out
3947: ,transaction_units
4439: ,x_return_status out NOCOPY VARCHAR2
4440: ,x_msg_count out NOCOPY NUMBER
4441: ,x_msg_data out NOCOPY VARCHAR2
4442:
4443: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4440: ,x_msg_count out NOCOPY NUMBER
4441: ,x_msg_data out NOCOPY VARCHAR2
4442:
4443: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4441: ,x_msg_data out NOCOPY VARCHAR2
4442:
4443: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4442:
4443: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4450: -- local asset info
4443: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4444: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
4445: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4446: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4447: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4448: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type)
4449: IS
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4449: IS
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4450: -- local asset info
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4451: l_trans_rec FA_API_TYPES.trans_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4452: lv_trans_rec FA_API_TYPES.trans_rec_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4453: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4454: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4455: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4463: l_period_rec FA_API_TYPES.period_rec_type;
4456: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4463: l_period_rec FA_API_TYPES.period_rec_type;
4464:
4457: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4463: l_period_rec FA_API_TYPES.period_rec_type;
4464:
4465: -- used for loop through tax books
4458: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4463: l_period_rec FA_API_TYPES.period_rec_type;
4464:
4465: -- used for loop through tax books
4466: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
4459: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4460: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4461: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4462: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4463: l_period_rec FA_API_TYPES.period_rec_type;
4464:
4465: -- used for loop through tax books
4466: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
4467: l_tax_index number;
4962: END do_reinstatement;
4963: -----------------------------------------------------------------------------
4964:
4965: FUNCTION do_all_books_reinstatement
4966: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4963: -----------------------------------------------------------------------------
4964:
4965: FUNCTION do_all_books_reinstatement
4966: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4964:
4965: FUNCTION do_all_books_reinstatement
4966: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4965: FUNCTION do_all_books_reinstatement
4966: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4966: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4967: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4968: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4976: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
4969: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4976: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
4977: -- will return retirement_id of asset_retire_rec
4970: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4976: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
4977: -- will return retirement_id of asset_retire_rec
4978: IS
4971: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4976: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
4977: -- will return retirement_id of asset_retire_rec
4978: IS
4979:
4972: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
4973: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
4974: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
4975: ,p_period_rec in FA_API_TYPES.period_rec_type
4976: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
4977: -- will return retirement_id of asset_retire_rec
4978: IS
4979:
4980: -- Returns the reporting GL set_of_books_ids
4993: l_distribution_source_book varchar2(30);
4994: l_mc_source_flag varchar2(1);
4995:
4996: -- local asset info
4997: l_trans_rec FA_API_TYPES.trans_rec_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
4994: l_mc_source_flag varchar2(1);
4995:
4996: -- local asset info
4997: l_trans_rec FA_API_TYPES.trans_rec_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
4995:
4996: -- local asset info
4997: l_trans_rec FA_API_TYPES.trans_rec_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
4996: -- local asset info
4997: l_trans_rec FA_API_TYPES.trans_rec_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
4997: l_trans_rec FA_API_TYPES.trans_rec_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
4998: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5006: l_period_rec FA_API_TYPES.period_rec_type;
4999: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5006: l_period_rec FA_API_TYPES.period_rec_type;
5007:
5000: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5006: l_period_rec FA_API_TYPES.period_rec_type;
5007:
5008: -- local individual variables
5001: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5006: l_period_rec FA_API_TYPES.period_rec_type;
5007:
5008: -- local individual variables
5009: l_latest_trans_date date;
5002: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5003: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5004: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5005: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5006: l_period_rec FA_API_TYPES.period_rec_type;
5007:
5008: -- local individual variables
5009: l_latest_trans_date date;
5010:
5270: END do_all_books_reinstatement;
5271:
5272:
5273: FUNCTION do_sub_reinstatement
5274: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5271:
5272:
5273: FUNCTION do_sub_reinstatement
5274: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5272:
5273: FUNCTION do_sub_reinstatement
5274: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5273: FUNCTION do_sub_reinstatement
5274: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5274: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5275: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5276: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5284: ,p_rate in number
5277: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5284: ,p_rate in number
5285: ,p_mrc_sob_type_code in VARCHAR2
5278: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5284: ,p_rate in number
5285: ,p_mrc_sob_type_code in VARCHAR2
5286: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5279: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5280: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5281: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5284: ,p_rate in number
5285: ,p_mrc_sob_type_code in VARCHAR2
5286: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5287: -- will return retirement_id of px_asset_retire_rec
5282: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5283: ,p_period_rec in FA_API_TYPES.period_rec_type
5284: ,p_rate in number
5285: ,p_mrc_sob_type_code in VARCHAR2
5286: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5287: -- will return retirement_id of px_asset_retire_rec
5288: IS
5289:
5290: -- local asset info
5287: -- will return retirement_id of px_asset_retire_rec
5288: IS
5289:
5290: -- local asset info
5291: l_trans_rec FA_API_TYPES.trans_rec_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5288: IS
5289:
5290: -- local asset info
5291: l_trans_rec FA_API_TYPES.trans_rec_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5289:
5290: -- local asset info
5291: l_trans_rec FA_API_TYPES.trans_rec_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5290: -- local asset info
5291: l_trans_rec FA_API_TYPES.trans_rec_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5291: l_trans_rec FA_API_TYPES.trans_rec_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5292: lv_trans_rec FA_API_TYPES.trans_rec_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5293: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5294: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5302:
5295: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5302:
5303: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5296: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5302:
5303: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5304:
5297: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5298: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5302:
5303: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5304:
5305: l_rate number;
5299: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5300: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5301: l_period_rec FA_API_TYPES.period_rec_type;
5302:
5303: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5304:
5305: l_rate number;
5306:
5307: l_fraction_remaining number;
5510: END do_sub_reinstatement;
5511: ----------------------------------------------------------------
5512:
5513: FUNCTION do_sub_regular_reinstatement
5514: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5511: ----------------------------------------------------------------
5512:
5513: FUNCTION do_sub_regular_reinstatement
5514: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5512:
5513: FUNCTION do_sub_regular_reinstatement
5514: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5513: FUNCTION do_sub_regular_reinstatement
5514: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5514: (px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5515: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5516: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5524: ,p_mrc_sob_type_code in VARCHAR2
5517: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5524: ,p_mrc_sob_type_code in VARCHAR2
5525: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5518: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5524: ,p_mrc_sob_type_code in VARCHAR2
5525: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5526: IS
5519: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
5520: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5524: ,p_mrc_sob_type_code in VARCHAR2
5525: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5526: IS
5527:
5521: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
5522: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
5523: ,p_period_rec in FA_API_TYPES.period_rec_type
5524: ,p_mrc_sob_type_code in VARCHAR2
5525: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5526: IS
5527:
5528: -- local asset info
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5525: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
5526: IS
5527:
5528: -- local asset info
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5526: IS
5527:
5528: -- local asset info
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5527:
5528: -- local asset info
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5528: -- local asset info
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5529: l_trans_rec FA_API_TYPES.trans_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5530: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5538:
5531: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5538:
5539: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5532: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5538:
5539: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5540:
5533: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5534: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5538:
5539: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5540:
5541: l_rowid ROWID;
5535: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5536: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5537: l_period_rec FA_API_TYPES.period_rec_type;
5538:
5539: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
5540:
5541: l_rowid ROWID;
5542: l_Fraction_Remaining number;
5543: l_deprn_rounding_flag varchar2(30);
5569:
5570: l_calling_fn varchar2(80) := 'FA_RETIREMENT_PUB.do_sub_regular_reinstatement';
5571:
5572: --Secondary Changes
5573: l_secondary_trans_rec FA_API_TYPES.trans_rec_type;
5574: l_secondary_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5575: l_secondary_sob_id number;
5576:
5577: BEGIN
5570: l_calling_fn varchar2(80) := 'FA_RETIREMENT_PUB.do_sub_regular_reinstatement';
5571:
5572: --Secondary Changes
5573: l_secondary_trans_rec FA_API_TYPES.trans_rec_type;
5574: l_secondary_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5575: l_secondary_sob_id number;
5576:
5577: BEGIN
5578:
5882: ,x_return_status out NOCOPY VARCHAR2
5883: ,x_msg_count out NOCOPY NUMBER
5884: ,x_msg_data out NOCOPY VARCHAR2
5885:
5886: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5887: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
5888: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
5889:
5890: IS
5883: ,x_msg_count out NOCOPY NUMBER
5884: ,x_msg_data out NOCOPY VARCHAR2
5885:
5886: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5887: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
5888: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
5889:
5890: IS
5891:
5884: ,x_msg_data out NOCOPY VARCHAR2
5885:
5886: ,px_trans_rec in out NOCOPY FA_API_TYPES.trans_rec_type
5887: ,px_asset_hdr_rec in out NOCOPY FA_API_TYPES.asset_hdr_rec_type
5888: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type)
5889:
5890: IS
5891:
5892: -- local asset info
5889:
5890: IS
5891:
5892: -- local asset info
5893: l_trans_rec FA_API_TYPES.trans_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5890: IS
5891:
5892: -- local asset info
5893: l_trans_rec FA_API_TYPES.trans_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5891:
5892: -- local asset info
5893: l_trans_rec FA_API_TYPES.trans_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5892: -- local asset info
5893: l_trans_rec FA_API_TYPES.trans_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5893: l_trans_rec FA_API_TYPES.trans_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5894: lv_trans_rec FA_API_TYPES.trans_rec_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5895: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5896: lv_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5897: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5905: l_period_rec FA_API_TYPES.period_rec_type;
5898: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5905: l_period_rec FA_API_TYPES.period_rec_type;
5906:
5899: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5905: l_period_rec FA_API_TYPES.period_rec_type;
5906:
5907: -- used to loop through tax books
5900: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5905: l_period_rec FA_API_TYPES.period_rec_type;
5906:
5907: -- used to loop through tax books
5908: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
5901: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
5902: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
5903: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
5904: l_inv_tbl FA_API_TYPES.inv_tbl_type;
5905: l_period_rec FA_API_TYPES.period_rec_type;
5906:
5907: -- used to loop through tax books
5908: l_tax_book_tbl FA_CACHE_PKG.fazctbk_tbl_type;
5909: l_tax_index number; -- index for tax loop
6191: END undo_reinstatement;
6192: ----------------------------------------------------
6193:
6194: FUNCTION undo_all_books_reinstatement
6195: (p_trans_rec in FA_API_TYPES.trans_rec_type
6196: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6197: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6198: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
6199: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6192: ----------------------------------------------------
6193:
6194: FUNCTION undo_all_books_reinstatement
6195: (p_trans_rec in FA_API_TYPES.trans_rec_type
6196: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6197: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6198: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
6199: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6200: IS
6193:
6194: FUNCTION undo_all_books_reinstatement
6195: (p_trans_rec in FA_API_TYPES.trans_rec_type
6196: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6197: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6198: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
6199: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6200: IS
6201:
6194: FUNCTION undo_all_books_reinstatement
6195: (p_trans_rec in FA_API_TYPES.trans_rec_type
6196: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6197: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6198: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
6199: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6200: IS
6201:
6202: -- Returns the reporting GL set_of_books_ids
6195: (p_trans_rec in FA_API_TYPES.trans_rec_type
6196: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6197: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6198: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type -- bug 8643362
6199: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6200: IS
6201:
6202: -- Returns the reporting GL set_of_books_ids
6203: -- associated with the set_of_books_id of given primary book_type_code
6215: l_distribution_source_book varchar2(30);
6216: l_mc_source_flag varchar2(1);
6217:
6218: -- local asset info
6219: l_trans_rec FA_API_TYPES.trans_rec_type;
6220: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6221: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6222: l_period_rec FA_API_TYPES.period_rec_type;
6223: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
6216: l_mc_source_flag varchar2(1);
6217:
6218: -- local asset info
6219: l_trans_rec FA_API_TYPES.trans_rec_type;
6220: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6221: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6222: l_period_rec FA_API_TYPES.period_rec_type;
6223: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
6224:
6217:
6218: -- local asset info
6219: l_trans_rec FA_API_TYPES.trans_rec_type;
6220: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6221: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6222: l_period_rec FA_API_TYPES.period_rec_type;
6223: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
6224:
6225: l_ins_status boolean := FALSE;
6218: -- local asset info
6219: l_trans_rec FA_API_TYPES.trans_rec_type;
6220: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6221: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6222: l_period_rec FA_API_TYPES.period_rec_type;
6223: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
6224:
6225: l_ins_status boolean := FALSE;
6226:
6219: l_trans_rec FA_API_TYPES.trans_rec_type;
6220: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6221: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6222: l_period_rec FA_API_TYPES.period_rec_type;
6223: l_asset_type_rec FA_API_TYPES.asset_type_rec_type; -- bug 8630242
6224:
6225: l_ins_status boolean := FALSE;
6226:
6227: -- local conversion rate
6403: END undo_all_books_reinstatement;
6404: ------------------------------------------------------------------------------
6405: -- p_trans_rec should have trx_id for the previous REINSTATEMENT transaction
6406: FUNCTION undo_sub_reinstatement
6407: (p_trans_rec in FA_API_TYPES.trans_rec_type
6408: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6409: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6410: ,p_mrc_sob_type_code in VARCHAR2
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6404: ------------------------------------------------------------------------------
6405: -- p_trans_rec should have trx_id for the previous REINSTATEMENT transaction
6406: FUNCTION undo_sub_reinstatement
6407: (p_trans_rec in FA_API_TYPES.trans_rec_type
6408: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6409: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6410: ,p_mrc_sob_type_code in VARCHAR2
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6412: IS
6405: -- p_trans_rec should have trx_id for the previous REINSTATEMENT transaction
6406: FUNCTION undo_sub_reinstatement
6407: (p_trans_rec in FA_API_TYPES.trans_rec_type
6408: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6409: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6410: ,p_mrc_sob_type_code in VARCHAR2
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6412: IS
6413: -- local asset info
6407: (p_trans_rec in FA_API_TYPES.trans_rec_type
6408: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6409: ,px_asset_retire_rec in out NOCOPY FA_API_TYPES.asset_retire_rec_type
6410: ,p_mrc_sob_type_code in VARCHAR2
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6412: IS
6413: -- local asset info
6414: l_trans_rec FA_API_TYPES.trans_rec_type;
6415: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6410: ,p_mrc_sob_type_code in VARCHAR2
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6412: IS
6413: -- local asset info
6414: l_trans_rec FA_API_TYPES.trans_rec_type;
6415: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6416: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6417:
6418: /*
6411: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6412: IS
6413: -- local asset info
6414: l_trans_rec FA_API_TYPES.trans_rec_type;
6415: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6416: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6417:
6418: /*
6419: * Check to see previous retirement was source line retirement or not
6412: IS
6413: -- local asset info
6414: l_trans_rec FA_API_TYPES.trans_rec_type;
6415: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6416: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6417:
6418: /*
6419: * Check to see previous retirement was source line retirement or not
6420: */
6629:
6630: -- This routine mainly validates input parameters and whether the trx is runnable
6631: FUNCTION do_validation
6632: (p_validation_type in varchar2
6633: ,p_trans_rec in FA_API_TYPES.trans_rec_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6630: -- This routine mainly validates input parameters and whether the trx is runnable
6631: FUNCTION do_validation
6632: (p_validation_type in varchar2
6633: ,p_trans_rec in FA_API_TYPES.trans_rec_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6631: FUNCTION do_validation
6632: (p_validation_type in varchar2
6633: ,p_trans_rec in FA_API_TYPES.trans_rec_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6632: (p_validation_type in varchar2
6633: ,p_trans_rec in FA_API_TYPES.trans_rec_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6633: ,p_trans_rec in FA_API_TYPES.trans_rec_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6634: ,p_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6635: ,p_asset_desc_rec in FA_API_TYPES.asset_desc_rec_type
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6643: ,p_calling_fn in varchar2
6636: ,p_asset_type_rec in FA_API_TYPES.asset_type_rec_type
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6643: ,p_calling_fn in varchar2
6644: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6637: ,p_asset_fin_rec in FA_API_TYPES.asset_fin_rec_type
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6643: ,p_calling_fn in varchar2
6644: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6645: IS
6638: ,p_asset_retire_rec in FA_API_TYPES.asset_retire_rec_type
6639: ,p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6643: ,p_calling_fn in varchar2
6644: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6645: IS
6646:
6640: ,p_subcomp_tbl in FA_API_TYPES.subcomp_tbl_type
6641: ,p_inv_tbl in FA_API_TYPES.inv_tbl_type
6642: ,p_period_rec in FA_API_TYPES.period_rec_type
6643: ,p_calling_fn in varchar2
6644: , p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN
6645: IS
6646:
6647: -- local asset info
6648: l_validation_type varchar2(30);
6645: IS
6646:
6647: -- local asset info
6648: l_validation_type varchar2(30);
6649: l_trans_rec FA_API_TYPES.trans_rec_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6646:
6647: -- local asset info
6648: l_validation_type varchar2(30);
6649: l_trans_rec FA_API_TYPES.trans_rec_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6647: -- local asset info
6648: l_validation_type varchar2(30);
6649: l_trans_rec FA_API_TYPES.trans_rec_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6648: l_validation_type varchar2(30);
6649: l_trans_rec FA_API_TYPES.trans_rec_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6649: l_trans_rec FA_API_TYPES.trans_rec_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6650: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6651: l_asset_desc_rec FA_API_TYPES.asset_desc_rec_type;
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6659:
6652: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6659:
6660: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6653: l_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6659:
6660: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6661:
6654: l_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6655: l_asset_dist_tbl FA_API_TYPES.asset_dist_tbl_type;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6659:
6660: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6661:
6662: l_sum_units number := 0;
6656: l_subcomp_tbl FA_API_TYPES.subcomp_tbl_type;
6657: l_inv_tbl FA_API_TYPES.inv_tbl_type;
6658: l_period_rec FA_API_TYPES.period_rec_type;
6659:
6660: lv_asset_retire_rec FA_API_TYPES.asset_retire_rec_type;
6661:
6662: l_sum_units number := 0;
6663: l_override_flag varchar2(1);
6664:
7527: | Invoice API instead of making direct DML call. |
7528: | |
7529: +====================================================================*/
7530: FUNCTION REINSTATE_SRC_LINE(
7531: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
7532: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7533: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7528: | |
7529: +====================================================================*/
7530: FUNCTION REINSTATE_SRC_LINE(
7531: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
7532: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7533: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7536: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
7529: +====================================================================*/
7530: FUNCTION REINSTATE_SRC_LINE(
7531: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
7532: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7533: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7536: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
7537: p_rowid IN ROWID,
7530: FUNCTION REINSTATE_SRC_LINE(
7531: px_trans_rec IN OUT NOCOPY FA_API_TYPES.trans_rec_type,
7532: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7533: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7536: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
7537: p_rowid IN ROWID,
7538: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN Is
7532: px_asset_hdr_rec IN OUT NOCOPY FA_API_TYPES.asset_hdr_rec_type,
7533: px_asset_fin_rec IN OUT NOCOPY FA_API_TYPES.asset_fin_rec_type,
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7536: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
7537: p_rowid IN ROWID,
7538: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN Is
7539:
7540: l_calling_fn VARCHAR2(80) := 'fa_retirement_pub.reinstate_src_line';
7534: p_asset_desc_rec IN FA_API_TYPES.asset_desc_rec_type,
7535: p_invoice_transaction_id IN NUMBER,
7536: p_inv_tbl IN FA_API_TYPES.inv_tbl_type,
7537: p_rowid IN ROWID,
7538: p_calling_fn IN VARCHAR2, p_log_level_rec IN FA_API_TYPES.log_level_rec_type) return BOOLEAN Is
7539:
7540: l_calling_fn VARCHAR2(80) := 'fa_retirement_pub.reinstate_src_line';
7541:
7542: CURSOR New_Asset_Invoices_C (c_asset_invoice_id NUMBER) is
7557:
7558: /*
7559: * For calling invoice api
7560: */
7561: l_trans_rec FA_API_TYPES.trans_rec_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7558: /*
7559: * For calling invoice api
7560: */
7561: l_trans_rec FA_API_TYPES.trans_rec_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7559: * For calling invoice api
7560: */
7561: l_trans_rec FA_API_TYPES.trans_rec_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7560: */
7561: l_trans_rec FA_API_TYPES.trans_rec_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7561: l_trans_rec FA_API_TYPES.trans_rec_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7562: l_asset_hdr_rec FA_API_TYPES.asset_hdr_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7570: l_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
7563: l_asset_cat_rec FA_API_TYPES.asset_cat_rec_type;
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7570: l_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
7571:
7564: l_asset_type_rec FA_API_TYPES.asset_type_rec_type;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7570: l_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
7571:
7572: l_ind BINARY_INTEGER;
7565: l_new_asset_fin_rec FA_API_TYPES.asset_fin_rec_type;
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7570: l_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
7571:
7572: l_ind BINARY_INTEGER;
7573:
7566: l_new_asset_fin_mrc_tbl FA_API_TYPES.asset_fin_tbl_type;
7567: l_inv_tbl FA_API_TYPES.inv_tbl_type;
7568: l_asset_deprn_rec_new FA_API_TYPES.asset_deprn_rec_type;
7569: l_asset_deprn_mrc_tbl_new FA_API_TYPES.asset_deprn_tbl_type;
7570: l_inv_trans_rec FA_API_TYPES.inv_trans_rec_type;
7571:
7572: l_ind BINARY_INTEGER;
7573:
7574: l_temp_src_line_id NUMBER;