DBA Data[Home] [Help]

APPS.XTR_REVAL_PROCESS_P dependencies on XTR_CALC_P

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

4464:
4465: -------------------------------------------------------
4466: -- AW Bug 2184427 Should use Yield rate calculation.
4467: -------------------------------------------------------
4468: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,
4469: l_no_of_days, l_year_basis, null, p_day_count_type, 'Y');
4470:
4471: -------------------------------------------------------
4472: -- AW Bug 2184427 Should use Yield rate calculation.

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

4484: and D.deal_no = RT.deal_number
4485: and RT.transaction_number = p_transaction_no;
4486:
4487: if l_brk_amt <> 0 then
4488: XTR_CALC_P.calc_days_run(l_start_date, l_end_date, l_year_calc_type,
4489: l_no_of_days, l_year_basis, null, p_day_count_type, 'Y');
4490: if l_disc_yield = 'DISCOUNT' then -- 'DISCOUNT'
4491: l_all_in_rate := ((l_face_value - abs(fv)) * (l_year_basis * 100))/
4492: (l_no_of_days * l_face_value);

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

4860: FND_MESSAGE.SET_TOKEN('TRANS_NO', rec.trans_no);
4861: l_buf := FND_MESSAGE.GET;
4862: FND_FILE.put_line(fnd_file.log, l_buf);
4863: Else
4864: XTR_CALC_P.calc_days_run(rec.revldate, l_start_date,
4865: rec.year_calc_type, l_days_t1, l_year);
4866: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
4867: C_YIELD_IND, rec.revldate, l_start_date,
4868: rec.currencya, NULL, rec.year_calc_type,

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

4869: C_INTERPOL_LINER, l_side, rec.batch_id, NULL);
4870: XTR_MARKET_DATA_P.get_md_from_set(r_md_in, r_md_out);
4871: l_rt1 := r_md_out.p_md_out;
4872:
4873: XTR_CALC_P.calc_days_run(rec.revldate, l_maturity_date,
4874: rec.year_calc_type, l_days_t2, l_year);
4875: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
4876: C_YIELD_IND, rec.revldate, l_maturity_date,
4877: rec.currencya, NULL, rec.year_calc_type,

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

5005: else
5006: l_side := 'B';
5007: end if;
5008:
5009: XTR_CALC_P.calc_days_run(rec.start_date, rec.maturity_date,
5010: rec.year_calc_type, l_day, l_year);
5011: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
5012: C_YIELD_IND, rec.start_date, rec.maturity_date,
5013: rec.currencya, NULL, rec.year_calc_type,

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

5050: end if;
5051: end if;
5052:
5053:
5054: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
5055: rec.year_calc_type, l_day, l_year);
5056: xtr_revl_mds_init(r_md_in, l_market_set, C_SOURCE,
5057: C_YIELD_IND, rec.revldate, rec.start_date,
5058: rec.currencya, NULL, rec.year_calc_type,

Line 5289: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5285: if l_contra_ccy = rec.sob_ccy then
5286: p_sob_curr_rate := 1;
5287:
5288: -- get sob currency yield rate from market data set
5289: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5290: rec.year_calc_type, l_num_days, l_year_basis);
5291:
5292: xtr_revl_mds_init(r_md_in, l_market_set, l_source,
5293: C_YIELD_IND, l_spot_date, l_future_date,

Line 5302: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5298: else
5299: l_base1 := l_contra_ccy;
5300: l_contra1 := rec.sob_ccy;
5301: xtr_get_base_contra(l_base1, l_contra1, l_reverse);
5302: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5303: rec.year_calc_type, l_num_days, l_year_basis);
5304:
5305: xtr_revl_mds_init(r_md_in, l_market_set, l_source,
5306: C_SPOT_RATE_IND, l_spot_date, NULL,

Line 5826: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

5822: l_contra_amt := -l_contra_amt;
5823: end if;
5824:
5825: /* determine FX rates using 'FX Forward' price model */
5826: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
5827: rec.year_calc_type, r_fx_rate.num_days, r_fx_rate.year_basis);
5828: if (l_side = 'B') then
5829: l_spot_side := 'B';
5830: l_contra_side := 'B';

Line 6629: XTR_CALC_P.calc_days_run(l_begin_date, l_future_date,

6625:
6626: if l_first = TRUE then -- first time reval
6627: l_begin_date := rec.start_date;
6628:
6629: XTR_CALC_P.calc_days_run(l_begin_date, l_future_date,
6630: rec.year_calc_type, l_no_of_days, l_year_basis);
6631: -- get spot rate between hedge ccy/sob ccy at hedge start date
6632: xtr_revl_mds_init(
6633: r_md_in,

Line 6687: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,

6683:
6684: /***********************************************************/
6685: /* Determine the ending forward rate and FV at end date */
6686: /***********************************************************/
6687: XTR_CALC_P.calc_days_run(l_spot_date, l_future_date,
6688: rec.year_calc_type, l_no_of_days, l_year_basis);
6689: -- get spot rate between hedge ccy/sob ccy at hedge start date
6690: xtr_revl_mds_init(
6691: r_md_in,

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

6997: FND_MESSAGE.SET_TOKEN('TRANS_NO', rec.trans_no);
6998: l_buf := FND_MESSAGE.GET;
6999: FND_FILE.put_line(fnd_file.log, l_buf);
7000: Else
7001: XTR_CALC_P.calc_days_run(rec.revldate, rec.expiry_date,
7002: rec.year_calc_type, l_no_of_days, l_year);
7003:
7004: l_num_year := l_no_of_days/l_year;
7005:

Line 7354: XTR_CALC_P.calc_days_run(l_date, p_end_date,

7350: else
7351: xtr_revl_getprice_fwd(rec, FALSE, p_int_rate); -- get forward forward rate
7352: end if;
7353:
7354: XTR_CALC_P.calc_days_run(l_date, p_end_date,
7355: p_day_count, p_day, p_year);
7356:
7357: if p_deal_basis = 'DISCOUNT' then
7358: XTR_RATE_CONVERSION.yield_to_discount_rate(

Line 7486: XTR_CALC_P.calculate_bond_price_yield (

7482: */
7483: If l_margin is not null then
7484: -- margin involved, convert bond price to YTM. Add margin to result.
7485: -- Then convert the sum back to a bond price
7486: XTR_CALC_P.calculate_bond_price_yield (
7487: p_bond_issue_code => rec.contract_code,
7488: p_settlement_date => rec.revldate,
7489: p_ex_cum_next_coupon => l_coupon_action,
7490: p_calculate_yield_or_price => 'Y',

Line 7529: XTR_CALC_P.calculate_bond_price_yield (

7525: /* Add in margin */
7526: l_bond_yield_m := l_yield + nvl(l_margin,0)/100;
7527:
7528: /* Convert yield with margin back to clean price */
7529: XTR_CALC_P.calculate_bond_price_yield (
7530: p_bond_issue_code => rec.contract_code,
7531: p_settlement_date => l_settle_date,
7532: p_ex_cum_next_coupon => l_coupon_action,
7533: p_calculate_yield_or_price => 'P',

Line 8576: XTR_CALC_P.calc_days_run(p_revl_date, p_start_date,

8572: if p_revl_date > p_start_date then
8573: p_present_value := 0;
8574: else
8575:
8576: XTR_CALC_P.calc_days_run(p_revl_date, p_start_date,
8577: p_day_count, l_day, l_year);
8578: xtr_revl_mds_init(r_md_in, p_market_set, C_SOURCE,
8579: C_DISCOUNT_FAC, p_revl_date, p_start_date,
8580: p_ccy, NULL, p_day_count,

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

9192: -- pass expiry date and deal not settled yet. Get fv from previous batch
9193: xtr_get_fv_from_batch(rec, fair_value, l_dummy, l_dummy1, l_reval_rate);
9194: rec.reval_rate := l_reval_rate;
9195: Else -- calculated unrealized FV
9196: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
9197: rec.year_calc_type, l_day_t1, l_year_t1);
9198: XTR_CALC_P.calc_days_run(rec.revldate, rec.maturity_date,
9199: rec.year_calc_type, l_day_t2, l_year_t2);
9200: if rec.deal_subtype in ('BCAP', 'BFLOOR') then

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

9194: rec.reval_rate := l_reval_rate;
9195: Else -- calculated unrealized FV
9196: XTR_CALC_P.calc_days_run(rec.revldate, rec.start_date,
9197: rec.year_calc_type, l_day_t1, l_year_t1);
9198: XTR_CALC_P.calc_days_run(rec.revldate, rec.maturity_date,
9199: rec.year_calc_type, l_day_t2, l_year_t2);
9200: if rec.deal_subtype in ('BCAP', 'BFLOOR') then
9201: l_side := 'A';
9202: else

Line 9612: XTR_CALC_P.calc_days_run(p_start_date, p_end_date,

9608:
9609: l_day NUMBER;
9610: l_year NUMBER;
9611: begin
9612: XTR_CALC_P.calc_days_run(p_start_date, p_end_date,
9613: p_day_count_basis, l_day, l_year, null, p_day_count_type, p_first_trans_flag);
9614: return (p_principle * p_rate * l_day) / (l_year * 100);
9615: end xtr_calc_interest;
9616: --------------------------------------------------------