DBA Data[Home] [Help]

APPS.XTR_REVAL_PROCESS_P dependencies on XTR_CALC_P

Line 4451: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,

4447:
4448: -------------------------------------------------------
4449: -- AW Bug 2184427 Should use Yield rate calculation.
4450: -------------------------------------------------------
4451: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,
4452: l_no_of_days, l_year_basis, null, p_day_count_type, 'Y');
4453:
4454: -------------------------------------------------------
4455: -- AW Bug 2184427 Should use Yield rate calculation.

Line 4471: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,

4467: and D.deal_no = RT.deal_number
4468: and RT.transaction_number = p_transaction_no;
4469:
4470: if l_brk_amt <> 0 then
4471: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,
4472: l_no_of_days, l_year_basis, null, p_day_count_type, 'Y');
4473: if l_disc_yield = 'DISCOUNT' then -- 'DISCOUNT'
4474: l_all_in_rate := ((l_face_value - abs(fv)) * (l_year_basis * 100))/
4475: (l_no_of_days * l_face_value);

Line 4847: XTR_CALC_P.calc_days_run(rec.revldate, l_start_date,

4843: FND_MESSAGE.SET_TOKEN('TRANS_NO', rec.trans_no);
4844: l_buf := FND_MESSAGE.GET;
4845: FND_FILE.put_line(fnd_file.log, l_buf);
4846: Else
4847: XTR_CALC_P.calc_days_run(rec.revldate, l_start_date,
4848: rec.year_calc_type, l_days_t1, l_year);
4849: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
4850: C_YIELD_IND, rec.revldate, l_start_date,
4851: rec.currencya, NULL, rec.year_calc_type,

Line 4856: XTR_CALC_P.calc_days_run(rec.revldate, l_maturity_date,

4852: C_INTERPOL_LINER, l_side, rec.batch_id, NULL);
4853: XTR_MARKET_DATA_P.get_md_from_set(r_md_in, r_md_out);
4854: l_rt1 := r_md_out.p_md_out;
4855:
4856: XTR_CALC_P.calc_days_run(rec.revldate, l_maturity_date,
4857: rec.year_calc_type, l_days_t2, l_year);
4858: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
4859: C_YIELD_IND, rec.revldate, l_maturity_date,
4860: rec.currencya, NULL, rec.year_calc_type,

Line 4992: XTR_CALC_P.calc_days_run(rec.start_date, rec.maturity_date,

4988: else
4989: l_side := 'B';
4990: end if;
4991:
4992: XTR_CALC_P.calc_days_run(rec.start_date, rec.maturity_date,
4993: rec.year_calc_type, l_day, l_year);
4994: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
4995: C_YIELD_IND, rec.start_date, rec.maturity_date,
4996: rec.currencya, NULL, rec.year_calc_type,

Line 5037: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,

5033: end if;
5034: end if;
5035:
5036:
5037: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
5038: rec.year_calc_type, l_day, l_year);
5039: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
5040: C_YIELD_IND, rec.revldate, rec.start_date,
5041: rec.currencya, NULL, rec.year_calc_type,

Line 5272: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5268: if l_contra_ccy = rec.sob_ccy then
5269: p_sob_curr_rate := 1;
5270:
5271: -- get sob currency yield rate from market data set
5272: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5273: rec.year_calc_type, l_num_days, l_year_basis);
5274:
5275: xtr_revl_mds_init(r_md_in, l_market_set, l_source,
5276: C_YIELD_IND, l_spot_date, l_future_date,

Line 5285: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5281: else
5282: l_base1 := l_contra_ccy;
5283: l_contra1 := rec.sob_ccy;
5284: xtr_get_base_contra(l_base1, l_contra1, l_reverse);
5285: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5286: rec.year_calc_type, l_num_days, l_year_basis);
5287:
5288: xtr_revl_mds_init(r_md_in, l_market_set, l_source,
5289: C_SPOT_RATE_IND, l_spot_date, NULL,

Line 5809: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5805: l_contra_amt := -l_contra_amt;
5806: end if;
5807:
5808: /* determine FX rates using 'FX Forward' price model */
5809: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5810: rec.year_calc_type, r_fx_rate.num_days, r_fx_rate.year_basis);
5811: if (l_side = 'B') then
5812: l_spot_side := 'B';
5813: l_contra_side := 'B';

Line 6610: XTR_CALC_P.calc_days_run(l_begin_date, l_future_date,

6606:
6607: if l_first = TRUE then -- first time reval
6608: l_begin_date := rec.start_date;
6609:
6610: XTR_CALC_P.calc_days_run(l_begin_date, l_future_date,
6611: rec.year_calc_type, l_no_of_days, l_year_basis);
6612: -- get spot rate between hedge ccy/sob ccy at hedge start date
6613: xtr_revl_mds_init(
6614: r_md_in,

Line 6668: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

6664:
6665: /***********************************************************/
6666: /* Determine the ending forward rate and FV at end date */
6667: /***********************************************************/
6668: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
6669: rec.year_calc_type, l_no_of_days, l_year_basis);
6670: -- get spot rate between hedge ccy/sob ccy at hedge start date
6671: xtr_revl_mds_init(
6672: r_md_in,

Line 6982: XTR_CALC_P.calc_days_run(rec.revldate, rec.expiry_date,

6978: FND_MESSAGE.SET_TOKEN('TRANS_NO', rec.trans_no);
6979: l_buf := FND_MESSAGE.GET;
6980: FND_FILE.put_line(fnd_file.log, l_buf);
6981: Else
6982: XTR_CALC_P.calc_days_run(rec.revldate, rec.expiry_date,
6983: rec.year_calc_type, l_no_of_days, l_year);
6984:
6985: l_num_year := l_no_of_days/l_year;
6986:

Line 7335: XTR_CALC_P.calc_days_run(l_date, p_end_date,

7331: else
7332: xtr_revl_getprice_fwd(rec, FALSE, p_int_rate); -- get forward forward rate
7333: end if;
7334:
7335: XTR_CALC_P.calc_days_run(l_date, p_end_date,
7336: p_day_count, p_day, p_year);
7337:
7338: if p_deal_basis = 'DISCOUNT' then
7339: XTR_RATE_CONVERSION.yield_to_discount_rate(

Line 7467: XTR_CALC_P.calculate_bond_price_yield (

7463: */
7464: If l_margin is not null then
7465: -- margin involved, convert bond price to YTM. Add margin to result.
7466: -- Then convert the sum back to a bond price
7467: XTR_CALC_P.calculate_bond_price_yield (
7468: p_bond_issue_code => rec.contract_code,
7469: p_settlement_date => rec.revldate,
7470: p_ex_cum_next_coupon => l_coupon_action,
7471: p_calculate_yield_or_price => 'Y',

Line 7510: XTR_CALC_P.calculate_bond_price_yield (

7506: /* Add in margin */
7507: l_bond_yield_m := l_yield + nvl(l_margin,0)/100;
7508:
7509: /* Convert yield with margin back to clean price */
7510: XTR_CALC_P.calculate_bond_price_yield (
7511: p_bond_issue_code => rec.contract_code,
7512: p_settlement_date => l_settle_date,
7513: p_ex_cum_next_coupon => l_coupon_action,
7514: p_calculate_yield_or_price => 'P',

Line 8557: XTR_CALC_P.calc_days_run(p_revl_date, p_start_date,

8553: if p_revl_date > p_start_date then
8554: p_present_value := 0;
8555: else
8556:
8557: XTR_CALC_P.calc_days_run(p_revl_date, p_start_date,
8558: p_day_count, l_day, l_year);
8559: xtr_revl_mds_init(r_md_in, p_market_set, C_SOURCE,
8560: C_DISCOUNT_FAC, p_revl_date, p_start_date,
8561: p_ccy, NULL, p_day_count,

Line 9177: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,

9173: -- pass expiry date and deal not settled yet. Get fv from previous batch
9174: xtr_get_fv_from_batch(rec, fair_value, l_dummy, l_dummy1, l_reval_rate);
9175: rec.reval_rate := l_reval_rate;
9176: Else -- calculated unrealized FV
9177: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
9178: rec.year_calc_type, l_day_t1, l_year_t1);
9179: XTR_CALC_P.calc_days_run(rec.revldate, rec.maturity_date,
9180: rec.year_calc_type, l_day_t2, l_year_t2);
9181: if rec.deal_subtype in ('BCAP', 'BFLOOR') then

Line 9179: XTR_CALC_P.calc_days_run(rec.revldate, rec.maturity_date,

9175: rec.reval_rate := l_reval_rate;
9176: Else -- calculated unrealized FV
9177: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
9178: rec.year_calc_type, l_day_t1, l_year_t1);
9179: XTR_CALC_P.calc_days_run(rec.revldate, rec.maturity_date,
9180: rec.year_calc_type, l_day_t2, l_year_t2);
9181: if rec.deal_subtype in ('BCAP', 'BFLOOR') then
9182: l_side := 'A';
9183: else

Line 9593: XTR_CALC_P.calc_days_run(p_start_date, p_end_date,

9589:
9590: l_day NUMBER;
9591: l_year NUMBER;
9592: begin
9593: XTR_CALC_P.calc_days_run(p_start_date, p_end_date,
9594: p_day_count_basis, l_day, l_year, null, p_day_count_type, p_first_trans_flag);
9595: return (p_principle * p_rate * l_day) / (l_year * 100);
9596: end xtr_calc_interest;
9597: --------------------------------------------------------