DBA Data[Home] [Help]

PACKAGE: APPS.FA_REC_PVT_PKG1

Source


1 PACKAGE FA_REC_PVT_PKG1 AUTHID CURRENT_USER AS
2 /* $Header: FAXVRC1S.pls 120.4 2009/03/27 04:45:31 bridgway 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)	RETURN BOOLEAN;
34 
35 
36 /*=====================================================================================+
37 |
38 |   Name:          Check_Retirements
39 |
40 |   Description:   Function to check whether the asset is fully retired in any
41 |		   book or if there is any pending retirement for the asset.
42 |
43 |   Parameters:    p_asset_id - Asset ID.
44 |
45 |   Returns:	   TRUE or FALSE (BOOLEAN)
46 |		   TRUE - Validation sucess.
47 |		   FALSE - Validation failed.
48 |
49 |   Notes:         Called from Validate_Reclass_Basic().
50 |
51 +====================================================================================*/
52 
53 FUNCTION Check_Retirements(
54 	p_asset_id		IN	NUMBER
55 	, p_log_level_rec        IN     FA_API_TYPES.log_level_rec_type)	RETURN BOOLEAN;
56 
57 
58 /*=====================================================================================+
59 |
60 |   Name:          Validate_Category_Change
61 |
62 |   Description:   Function to validate category change.
63 |
64 |   Parameters:    p_asset_id - Asset ID.
65 |		   p_old_category_id - Category to change from.
66 |		   p_new_category_id - New category to change to.
67 |		   p_mr_req_id - Mass reqeust id.
68 |		   x_old_cat_type - Current category type.
69 |
70 |   Returns:	   TRUE or FALSE (BOOLEAN)
71 |		   TRUE - Validation sucess.
72 |		   FALSE - Validation failed.
73 |
74 |   Notes:         Called from Validate_Reclass_Basic().
75 |
76 +====================================================================================*/
77 
78 FUNCTION Validate_Category_Change(
79 	p_asset_id		IN	NUMBER,
80 	p_old_category_id	IN	NUMBER,
81 	p_new_category_id	IN	NUMBER,
82 	p_mr_req_id		IN	NUMBER,
83 	x_old_cat_type		IN OUT NOCOPY VARCHAR2
84 	, p_log_level_rec        IN     FA_API_TYPES.log_level_rec_type)	RETURN BOOLEAN;
85 
86 
87 /*=====================================================================================+
88  |
89  |   Name:          Check_Trans_Date
90  |
91  |   Description:   Check the transaction_date_entered value that will be
92  |                  inserted into FA_TRANSACTION_HEADERS table.  No other transaction
93  |                  should follow between the transaction_date_entered and the current
94  |                  date.
95  |
96  |   Parameters:    p_asset_id - Asset ID.
97  |                  p_book_type_code - Book the asset belongs to.
98  |                  p_trans_date - Transaction date entered.
99  |
100  |   Returns:       TRUE or FALSE (BOOLEAN)
101  |                  TRUE - Operation sucess.
102  |                  FALSE - Operation failed.
103  |
104  |   Notes:         Called from Set_Redef_Transaction and
105  |
106  +====================================================================================*/
107 
108 FUNCTION Check_Trans_Date(
109         p_asset_id              IN      NUMBER,
110         p_book_type_code        IN      VARCHAR2,
111         p_trans_date            IN      DATE
112         , p_log_level_rec        IN     FA_API_TYPES.log_level_rec_type) RETURN BOOLEAN;
113 
114 END FA_REC_PVT_PKG1;