1 PACKAGE iby_eval_ar_factors_pkg AUTHID CURRENT_USER AS
2 /*$Header: ibyevars.pls 115.4 2002/11/18 22:26:43 jleybovi ship $*/
3
4 /*
5 ** Procedure: eval_TrxnCreditLimit
6 ** Purpose: Evaluates the risk associated with Transaction Credit
7 ** Limit risk factor.
8 ** The transaction amount will be passed into this routine
9 ** along with the account number. Compare the
10 ** transaction credit limit set for this account with the
11 ** transaction amount and return the risk score.
12 */
13
14 procedure eval_TrxnCreditLimit(i_acctnumber in varchar2,
15 i_amount in number,
16 i_currency_code in varchar2,
17 i_payeeid in varchar2,
18 o_risk_score out nocopy number);
19
20 /*
21 ** Procedure: eval_OverallCreditLimit
22 ** Purpose: Evaluates the risk associated with Overall Credit Limit risk factor.
23 ** The accountnumber will be passed into this routine
24 ** Based on the account number get the associated Overall Credit Limit
25 ** and compare it with the overall balance .
26 ** Overall Balance is the amount due remaining for all the open
27 ** transactions of that account
28 */
29
30 Procedure eval_OverallCreditLimit(i_accountnumber in varchar2,
31 i_amount in number,
32 i_currency_code in varchar2,
33 i_payeeid in varchar2,
34 o_risk_score out nocopy number);
35
36
37
38 /*
39 ** Procedure: eval_CreditRatingCode
40 ** Purpose: Evaluates the risk associated with CreditRating Code risk factor.
41 ** The accountnumber will be passed into this routine
42 ** Based on the account number get the associated creditrating code
43 ** and compare the creditrating code with the creditratingcode mapping
44 ** stored in iby_mappings and return the appropriate risk score.
45 */
46
47 Procedure eval_CreditRatingCode(i_accountnumber in varchar2,
48 i_payeeid in varchar2,
49 o_risk_score out nocopy number);
50
51 /*
52 ** Procedure: eval_RiskCode
53 ** Purpose: Evaluates the risk associated with Risk Code risk factor.
54 ** The ccountnumber will be passed into this routine
55 ** Based on the account number get the associated risk code
56 ** and compare the riskcode with the riskcode mapping
57 ** stored in iby_mappings and return the appropriate risk score.
58 */
59
60 procedure eval_RiskCode(i_accountnumber in varchar2,
61 i_payeeid in varchar2,
62 o_risk_score out nocopy number);
63 end iby_eval_ar_factors_pkg;