DBA Data[Home] [Help]

PACKAGE: APPS.CN_COMMISSION_CALC_PUB

Source


1 PACKAGE CN_COMMISSION_CALC_PUB AUTHID CURRENT_USER AS
2 --$Header: cnpprcms.pls 120.2 2006/03/31 10:34:21 sbadami noship $
3 /*#
4  * The calculate_Commission procedure in cn_commission_calc_pub is used for
5  * calculating projected compensation for a salesperson, including the projection
6  * identifier, calculation date, and sales credit amount. These details are inserted into a
7  * global temporary table called cn_proj_compensation_gtt by the calling program.
8  * The projection identifier passed by the user is mapped to the plan element using
9  * the plan element classification rules defined for the period defined in the
10  * cn_proj_compensation_gtt. Then, the corresponding formula is used for finding the
11  * projected compensation of the passed projection identifier.
12  * @rep:scope public
13  * @rep:product CN
14  * @rep:displayname Calculate Projected Compensation Public Application Program Interface
15  * @rep:lifecycle active
16  * @rep:compatibility S
17  * @rep:category BUSINESS_ENTITY CN_COMP_PLANS
18  */
19 
20 /*#
21  * This procedure creates a record in cn_role_plans. This also calls Cn_Commission_
22  * Calc_Pvt. calculate_Commission to create records in cn_Srp_plan_assigns.
23  * @param p_api_version API Version
24  * @param p_init_msg_list Initialize Message List
25  * @param x_inc_plnr_disclaimer The income planner disclaimer message is returned
26  * if the profile 'CN_CUST_DISCLAIMER' is set.
27  * @param x_return_status Status of the create operation
28  * @param x_msg_count Number of error messages returned
29  * @param x_msg_data Error messages
30  * @rep:displayname Calculate Commission For Salesrep
31  */
32 
33  Procedure calculate_Commission
34 (
35 	p_api_version		IN NUMBER,
36 	p_init_msg_list		IN VARCHAR2 := FND_API.G_FALSE,
37 	x_inc_plnr_disclaimer   OUT NOCOPY  cn_repositories.income_planner_disclaimer%TYPE,
38 	x_return_status		OUT NOCOPY VARCHAR2,
39 	x_msg_count		OUT NOCOPY NUMBER,
40 	x_msg_data		OUT NOCOPY VARCHAR2
41 );
42 
43  Procedure calculate_Commission
44 (
45 	p_api_version		IN NUMBER,
46 	p_init_msg_list		IN VARCHAR2 := FND_API.G_FALSE,
47 	p_org_id            IN NUMBER,
48 	x_inc_plnr_disclaimer   OUT NOCOPY  cn_repositories.income_planner_disclaimer%TYPE,
49 	x_return_status		OUT NOCOPY VARCHAR2,
50 	x_msg_count		OUT NOCOPY NUMBER,
51 	x_msg_data		OUT NOCOPY VARCHAR2
52 
53 );
54 
55 END CN_COMMISSION_CALC_PUB;