DBA Data[Home] [Help]

PACKAGE: APPS.FA_REC_PVT_PKG1

Source


1 PACKAGE FA_REC_PVT_PKG1 AS
2 /* $Header: FAXVRC1S.pls 120.3 2005/06/24 15:13:00 msiddiqu ship $ */
3 
4 /*=====================================================================================+
5 |
6 |   Name:          Validate_Reclass_Basic
7 |
8 |   Description:   Checks if basic reclass transaction -- change of category and
9 |		   account informaion only(no depreciation rule redefaulting) --
10 |		   can be performed.  Calls other child modules to perform
11 |		   the validation.
12 |
13 |   Parameters:    p_asset_id - Asset ID.
14 |		   p_old_category_id - Category to change from.
15 |		   p_new_category_id - New category to change to.
16 |		   p_mr_req_id - Mass request id.
17 |		   x_old_cat_type - Current category type.
18 |
19 |   Returns:	   TRUE or FALSE (BOOLEAN)
20 |		   TRUE - Validation sucess.
21 |		   FALSE - Validation failed.
22 |
23 |   Notes:         Called from FA_REC_PUB_PKG.Reclass_Asset(Reclass Public API.)
24 |
25 +====================================================================================*/
26 
27 FUNCTION Validate_Reclass_Basic(
28 	p_asset_id		IN	NUMBER,
29 	p_old_category_id	IN	NUMBER,
30 	p_new_category_id	IN	NUMBER,
31 	p_mr_req_id		IN	NUMBER,
32 	x_old_cat_type		IN OUT NOCOPY VARCHAR2,
33    p_log_level_rec      IN     FA_API_TYPES.log_level_rec_type default null
34 	)	RETURN BOOLEAN;
35 
36 
37 /*=====================================================================================+
38 |
39 |   Name:          Check_Retirements
40 |
41 |   Description:   Function to check whether the asset is fully retired in any
42 |		   book or if there is any pending retirement for the asset.
43 |
44 |   Parameters:    p_asset_id - Asset ID.
45 |
46 |   Returns:	   TRUE or FALSE (BOOLEAN)
47 |		   TRUE - Validation sucess.
48 |		   FALSE - Validation failed.
49 |
50 |   Notes:         Called from Validate_Reclass_Basic().
51 |
52 +====================================================================================*/
53 
54 FUNCTION Check_Retirements(
55 	p_asset_id		IN	NUMBER,
56    p_log_level_rec      IN     FA_API_TYPES.log_level_rec_type default null
57 	)	RETURN BOOLEAN;
58 
59 
60 /*=====================================================================================+
61 |
62 |   Name:          Validate_Category_Change
63 |
64 |   Description:   Function to validate category change.
65 |
66 |   Parameters:    p_asset_id - Asset ID.
67 |		   p_old_category_id - Category to change from.
68 |		   p_new_category_id - New category to change to.
69 |		   p_mr_req_id - Mass reqeust id.
70 |		   x_old_cat_type - Current category type.
71 |
72 |   Returns:	   TRUE or FALSE (BOOLEAN)
73 |		   TRUE - Validation sucess.
74 |		   FALSE - Validation failed.
75 |
76 |   Notes:         Called from Validate_Reclass_Basic().
77 |
78 +====================================================================================*/
79 
80 FUNCTION Validate_Category_Change(
81 	p_asset_id		IN	NUMBER,
82 	p_old_category_id	IN	NUMBER,
83 	p_new_category_id	IN	NUMBER,
84 	p_mr_req_id		IN	NUMBER,
85 	x_old_cat_type		IN OUT NOCOPY VARCHAR2,
86    p_log_level_rec      IN     FA_API_TYPES.log_level_rec_type default null
87 	)	RETURN BOOLEAN;
88 
89 
90 /*=====================================================================================+
91 |
92 |   Name:          Check_Trans_Date
93 |
94 |   Description:   Check the transaction_date_entered value that will be
95 |                  inserted into FA_TRANSACTION_HEADERS table.  No other transaction
96 |                  should follow between the transaction_date_entered and the current
97 |                  date.
98 |
99 |   Parameters:    p_asset_id - Asset ID.
100 |                  p_book_type_code - Book the asset belongs to.
101 |                  p_trans_date - Transaction date entered.
102 |
103 |   Returns:       TRUE or FALSE (BOOLEAN)
104 |                  TRUE - Operation sucess.
105 |                  FALSE - Operation failed.
106 |
107 |   Notes:         Called from Set_Redef_Transaction and
108 |
109 +====================================================================================*/
110 
111 FUNCTION Check_Trans_Date(
112         p_asset_id              IN      NUMBER,
113         p_book_type_code        IN      VARCHAR2,
114         p_trans_date            IN      DATE,
115         p_log_level_rec      IN     FA_API_TYPES.log_level_rec_type default null
116         ) RETURN BOOLEAN;
117 
118 END FA_REC_PVT_PKG1;