DBA Data[Home] [Help]

APPS.PA_REVENUE_AMT dependencies on PA_EXPENDITURE_ITEMS_ALL

Line 8: -- pa_expenditure_items_all table.

4: -- 1. Procedure calls the client labor billing extension for calculating
5: -- bill amount
6: -- 2. Procedure calls the IRS api for populating raw revenue
7: -- and bill amount, irs rate sch rev id for revenue/invoice in
8: -- pa_expenditure_items_all table.
9: -- This procedure verifies whether 'Indirect rate schedule'
10: -- this applicable for an ei or not and if applicable then it calls the
11: -- cost plus api to compute the Indirect amount which later on gets added
12: -- to raw revenue and bill amount.

Line 116: WHERE project_id =(select project_id from pa_expenditure_items_all

112:
113: SELECT nvl(BTC_COST_BASE_REV_CODE,'EXP_TRANS_CURR')
114: INTO l_mcb_cost_flag
115: FROM pa_projects_all
116: WHERE project_id =(select project_id from pa_expenditure_items_all
117: where expenditure_item_id=ei_id(1));
118: EXCEPTION
119: WHEN NO_DATA_FOUND THEN
120: IF g1_debug_mode = 'Y' THEN

Line 382: where project_id =(select project_id from pa_expenditure_items_all where expenditure_item_id=ei_id(j));

378:
379: select BTC_COST_BASE_REV_CODE
380: into l_mcb_cost_flag
381: from pa_projects_all
382: where project_id =(select project_id from pa_expenditure_items_all where expenditure_item_id=ei_id(j));
383:
384: EXCEPTION
385: WHEN NO_DATA_FOUND THEN
386: IF g1_debug_mode = 'Y' THEN

Line 549: where project_id =(select project_id from pa_expenditure_items_all where expenditure_item_id=ei_id(j));

545:
546: select BTC_COST_BASE_REV_CODE
547: into l_mcb_cost_flag
548: from pa_projects_all
549: where project_id =(select project_id from pa_expenditure_items_all where expenditure_item_id=ei_id(j));
550:
551: EXCEPTION
552: WHEN NO_DATA_FOUND THEN
553: IF g1_debug_mode = 'Y' THEN

Line 612: pa_expenditure_items_all table.

608: inv_amount( j ) := NULL;
609: END IF;
610: /*-----------------------------------------------------------------------------
611: Rejection code error message which would be eventually populated in
612: pa_expenditure_items_all table.
613: ----------------------------------------------------------------------------*/
614:
615: IF ( insert_error_message ) THEN
616: IF (stage = 200) THEN

Line 759: FROM pa_expenditure_items_all x,

755: AND t.project_id = dr.project_id
756: AND dr.request_id = p_request_id
757: AND EXISTS
758: ( SELECT NULL
759: FROM pa_expenditure_items_all x,
760: pa_cust_rev_dist_lines_all rdl
761: WHERE x.request_id+0 = dr.request_id
762: AND x.task_id = t.task_id
763: AND x.revenue_distributed_flag||'' = 'A'

Line 784: FROM pa_expenditure_items_all ei2,

780: AND dr2.project_id = p_project_id
781: AND dr2.request_id+0 = p_request_id
782: AND EXISTS
783: ( SELECT NULL
784: FROM pa_expenditure_items_all ei2,
785: pa_cust_rev_dist_lines_all rdl2
786: WHERE ei2.request_id = rdl2.request_id
787: AND rdl2.expenditure_item_id = ei2.expenditure_item_id
788: AND ei2.raw_revenue is not NULL

Line 821: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei,

817: rdl.draft_revenue_item_line_num,
818: rdl.draft_revenue_num,
819: ei.accrued_revenue ,
820: ei.raw_revenue
821: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei,
822: pa_tasks t
823: where p_top_task_id is not NULL
824: AND ei.request_id+0 = p_request_id
825: AND ei.raw_revenue is not NULL

Line 845: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei

841: rdl.draft_revenue_item_line_num,
842: rdl.draft_revenue_num,
843: ei.accrued_revenue ,
844: ei.raw_revenue
845: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei
846: where p_top_task_id is NULL
847: AND ei.request_id+0 = p_request_id
848: AND ei.raw_revenue is not NULL
849: AND ei.accrued_revenue is not NULL

Line 897: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei,

893: Removed the suppression of index on rdl.draft_revenue_num */
894: IF p_task_level_funding = 1 THEN
895: select 'X'
896: into dummy_x
897: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei,
898: pa_tasks t
899: where ei.request_id+0 = p_request_id
900: AND ei.raw_revenue is not NULL
901: AND ei.accrued_revenue is not NULL

Line 920: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei

916: ELSE
917:
918: select 'X'
919: into dummy_x
920: from pa_cust_rev_dist_lines_all rdl,pa_expenditure_items_all ei
921: where ei.request_id+0 = p_request_id
922: AND ei.raw_revenue is not NULL
923: AND ei.accrued_revenue is not NULL
924: AND ei.revenue_distributed_flag||'' = 'A'||''

Line 1033: l_message_code := 'Error in update on pa_expenditure_items_all';

1029: exp_cur_rec.DRAFT_REVENUE_NUM
1030: AND i.line_num =
1031: exp_cur_rec.DRAFT_REVENUE_ITEM_LINE_NUM;
1032:
1033: l_message_code := 'Error in update on pa_expenditure_items_all';
1034:
1035: UPDATE pa_expenditure_items_all x
1036: SET x.accrued_revenue
1037: = x.accrued_revenue - roundoff_amount

Line 1035: UPDATE pa_expenditure_items_all x

1031: exp_cur_rec.DRAFT_REVENUE_ITEM_LINE_NUM;
1032:
1033: l_message_code := 'Error in update on pa_expenditure_items_all';
1034:
1035: UPDATE pa_expenditure_items_all x
1036: SET x.accrued_revenue
1037: = x.accrued_revenue - roundoff_amount
1038: WHERE x.expenditure_item_id =
1039: exp_cur_rec.EXPENDITURE_ITEM_ID;