DBA Data[Home] [Help]

APPS.EAM_ASSET_MOVE_UTIL dependencies on EAM_ASSET_MOVE_UTIL

Line 1: PACKAGE BODY eam_asset_move_util AS

1: PACKAGE BODY eam_asset_move_util AS
2: /* $Header: EAMAMUTB.pls 120.12.12010000.4 2008/10/23 08:01:53 vchidura ship $ */
3:
4: -- validate whether an asset under context can be moved or not (before Asset Move UI is thrown)
5: -- Also called by AssetMove() which will be called for a list of asset records

Line 6: g_pkg_name CONSTANT VARCHAR2(30):= 'EAM_ASSET_MOVE_UTIL';

2: /* $Header: EAMAMUTB.pls 120.12.12010000.4 2008/10/23 08:01:53 vchidura ship $ */
3:
4: -- validate whether an asset under context can be moved or not (before Asset Move UI is thrown)
5: -- Also called by AssetMove() which will be called for a list of asset records
6: g_pkg_name CONSTANT VARCHAR2(30):= 'EAM_ASSET_MOVE_UTIL';
7:
8: Procedure isValidMove(
9: p_instance_id IN NUMBER,
10: p_transaction_date IN DATE,

Line 41: if(eam_asset_move_util.isOpenPeriod(p_curr_org_id,p_transaction_date)) then

37: IF (l_plog) THEN
38: FND_LOG.STRING(FND_LOG.LEVEL_PROCEDURE, l_module, 'Entering ' || l_full_name);
39: END IF;
40:
41: if(eam_asset_move_util.isOpenPeriod(p_curr_org_id,p_transaction_date)) then
42: isValidMove := 'Y';
43: else
44: isValidMove := 'N';
45: x_return_status:='N';

Line 50: if(NOT(eam_asset_move_util.isAssetRoute(p_instance_id))) then

46: x_return_message:='EAM_INV_NO_OPEN_PERIOD';
47: Return;
48: end if;
49:
50: if(NOT(eam_asset_move_util.isAssetRoute(p_instance_id))) then
51: isValidMove := 'Y';
52: else
53: isValidMove := 'N';
54: x_return_status:='N';

Line 59: if(NOT(eam_asset_move_util.hasPropMngrLink(p_instance_id))) then

55: x_return_message:='EAM_ASSET_ROUTE';
56: Return;
57: End if;
58:
59: if(NOT(eam_asset_move_util.hasPropMngrLink(p_instance_id))) then
60: isValidMove := 'Y';
61: else
62: isValidMove := 'N';
63: x_return_status:='N';

Line 68: if(eam_asset_move_util.isTransactable(p_inventory_item_id,p_curr_org_id)) then

64: x_return_message:='EAM_ASSET_PROP_MNGR';
65: Return;
66: End if;
67:
68: if(eam_asset_move_util.isTransactable(p_inventory_item_id,p_curr_org_id)) then
69: isValidMove := 'Y';
70: else
71: isValidMove := 'N';
72: x_return_status:='N';

Line 77: if(NOT(eam_asset_move_util.isInTransit( p_instance_id))) then

73: x_return_message:='EAM_ASSET_NON_TRANSACT';
74: Return;
75: End if;
76:
77: if(NOT(eam_asset_move_util.isInTransit( p_instance_id))) then
78: isValidMove := 'Y';
79: else
80: isValidMove := 'N';
81: x_return_status:='N';

Line 86: if(NOT(eam_asset_move_util.hasProdEquipLink(p_instance_id))) then

82: x_return_message:='EAM_ASSET_IN_TRANSIT';
83: Return;
84: End if;
85:
86: if(NOT(eam_asset_move_util.hasProdEquipLink(p_instance_id))) then
87: isValidMove := 'Y';
88: else
89: isValidMove := 'N';
90: x_return_status:='N';

Line 172: eam_asset_move_util.isValidMove(p_asset_hierarchy_REC.instance_id,

168: IF (l_plog) THEN
169: FND_LOG.STRING(FND_LOG.LEVEL_PROCEDURE, l_module, 'Entering ' || l_full_name||'for'||p_asset_hierarchy_REC.instance_id);
170: END IF;
171:
172: eam_asset_move_util.isValidMove(p_asset_hierarchy_REC.instance_id,
173: sysdate ,
174: p_asset_hierarchy_REC.inventory_item_id ,
175: p_asset_hierarchy_REC.CURRENT_ORG_ID ,
176: x_return_status ,

Line 186: if(eam_asset_move_util.hasSubInventory(p_asset_hierarchy_REC.instance_id)) then

182:
183: IF x_return_status = 'Y' THEN
184:
185: --for 7370638-AMWB-MR
186: if(eam_asset_move_util.hasSubInventory(p_asset_hierarchy_REC.instance_id)) then
187: x_return_status := 'Y'; --which means it's a valid asset
188: else
189: x_return_status:='MR';--This status is used to perform the Misc. receipt into intermediate subinvenotry
190: return;

Line 831: END eam_asset_move_util;

827: fnd_message.set_name(prod, msg);
828: return fnd_message.get;
829: END translate_message;
830:
831: END eam_asset_move_util;