1 PACKAGE FA_INTERCO_PVT AS
2 /* $Header: FAVINCOS.pls 120.6 2005/06/24 16:33:23 snarayan noship $ */
3
4 TYPE interco_rec_type IS RECORD
5 (balancing_segment varchar2(30),
6 type varchar2(30),
7 amount number
8 );
9
10 TYPE interco_tbl_type IS TABLE OF interco_rec_type index by binary_integer;
11
12 TYPE dist_rec_type IS RECORD
13 (distribution_id number,
14 code_combination_id number,
15 units number
16 );
17
18 TYPE dist_tbl_type IS TABLE OF dist_rec_type index by binary_integer;
19
20 FUNCTION do_all_books
21 (p_src_trans_rec in FA_API_TYPES.trans_rec_type,
22 p_src_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type,
23 p_dest_trans_rec in FA_API_TYPES.trans_rec_type,
24 p_dest_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type,
25 p_calling_fn in varchar2,
26 p_log_level_rec in fa_api_types.log_level_rec_type default null
27 ) RETURN BOOLEAN;
28
29
30 FUNCTION do_intercompany
31 (p_src_trans_rec in FA_API_TYPES.trans_rec_type,
32 p_src_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type,
33 p_dest_trans_rec in FA_API_TYPES.trans_rec_type,
34 p_dest_asset_hdr_rec in FA_API_TYPES.asset_hdr_rec_type,
35 p_calling_fn in varchar2,
36 p_mrc_sob_type_code in varchar2,
37 p_log_level_rec in fa_api_types.log_level_rec_type default null
38 ) RETURN BOOLEAN;
39
40
41 FUNCTION validate_grp_interco
42 (p_asset_hdr_rec in fa_api_types.asset_hdr_rec_type,
43 p_trans_rec in fa_api_types.trans_rec_type,
44 p_asset_type_rec in fa_api_types.asset_type_rec_type,
45 p_group_asset_id in number,
46 p_asset_dist_tbl in FA_API_TYPES.asset_dist_tbl_type,
47 p_calling_fn in varchar2,
48 p_log_level_rec in fa_api_types.log_level_rec_type default null
49 ) return boolean;
50
51 FUNCTION validate_inv_interco
52 (p_src_asset_hdr_rec in fa_api_types.asset_hdr_rec_type,
53 p_src_trans_rec in fa_api_types.trans_rec_type,
54 p_dest_asset_hdr_rec in fa_api_types.asset_hdr_rec_type,
55 p_dest_trans_rec in fa_api_types.trans_rec_type,
56 p_calling_fn in varchar2,
57 x_interco_impact out nocopy boolean,
58 p_log_level_rec in fa_api_types.log_level_rec_type default null
59 ) RETURN BOOLEAN;
60
61 END FA_INTERCO_PVT;