DBA Data[Home] [Help]

APPS.FA_GAINLOSS_UPD_PKG dependencies on FA_CACHE_PKG

Line 4: g_print_debug boolean := fa_cache_pkg.fa_print_debug;

1: PACKAGE BODY FA_GAINLOSS_UPD_PKG AS
2: /* $Header: fagupdb.pls 120.79.12010000.9 2009/02/04 09:12:08 souroy ship $*/
3:
4: g_print_debug boolean := fa_cache_pkg.fa_print_debug;
5:
6:
7: /*============================================================================
8: | NAME faginfo

Line 1009: if not fa_cache_pkg.fazccb

1005: end if;
1006:
1007: if (bk.group_asset_id is not null) and
1008: (nvl(bk.member_rollup_flag, 'N') = 'N') then
1009: if not fa_cache_pkg.fazccb
1010: (X_book => ret.book,
1011: X_cat_id => l_asset_cat_rec_m.category_id
1012: ,p_log_level_rec => p_log_level_rec) then
1013: fa_srvr_msg.add_message(calling_fn => l_calling_fn

Line 1157: if (fa_cache_pkg.fa_print_debug) then

1153: * all ditribution lines.
1154: * Then find out cost and reserve retired and use these to find out
1155: * NBV retired for each effected distribution line.
1156: */
1157: if (fa_cache_pkg.fa_print_debug) then
1158: fa_debug_pkg.add(fname => l_calling_fn,
1159: element => '+++ret.cost_retired before if condition',
1160: value => ret.cost_retired
1161: ,p_log_level_rec => p_log_level_rec);

Line 1200: if (fa_cache_pkg.fa_print_debug) then

1196: end if;
1197:
1198: if (ret.units_retired is null and NOT l_unit_ret_in_corp) then
1199: OPEN c_ret_amount (ret.asset_id);
1200: if (fa_cache_pkg.fa_print_debug) then
1201: fa_debug_pkg.add(fname => l_calling_fn,
1202: element => '+++in amount',
1203: value => 1
1204: ,p_log_level_rec => p_log_level_rec);

Line 1208: if (fa_cache_pkg.fa_print_debug) then

1204: ,p_log_level_rec => p_log_level_rec);
1205: end if;
1206: else
1207: OPEN c_ret_dists;
1208: if (fa_cache_pkg.fa_print_debug) then
1209: fa_debug_pkg.add(fname => l_calling_fn,
1210: element => '+++in dists',
1211: value => 1
1212: ,p_log_level_rec => p_log_level_rec);

Line 1395: if (fa_cache_pkg.fa_print_debug) then

1391: total_adj_amount := total_adj_amount + adj_row.adjustment_amount;
1392:
1393: /* bug 3519644 */
1394:
1395: if (fa_cache_pkg.fa_print_debug) then
1396: fa_debug_pkg.add(fname => l_calling_fn,
1397: element => '+++adjustment_amount for NBV retired',
1398: value => adj_row.adjustment_amount
1399: ,p_log_level_rec => p_log_level_rec);

Line 1430: l_asset_hdr_rec_g.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;

1426: (nvl(bk.member_rollup_flag, 'N') = 'N') and
1427: (h_nbv_retired <> 0) then
1428: l_asset_hdr_rec_g.asset_id := bk.group_asset_id;
1429: l_asset_hdr_rec_g.book_type_code := ret.book;
1430: l_asset_hdr_rec_g.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;
1431:
1432: if not FA_UTIL_PVT.get_asset_cat_rec (
1433: p_asset_hdr_rec => l_asset_hdr_rec_g,
1434: px_asset_cat_rec => l_asset_cat_rec_g,

Line 1442: if not fa_cache_pkg.fazccb(

1438: ,p_log_level_rec => p_log_level_rec);
1439: return(FALSE);
1440: end if;
1441:
1442: if not fa_cache_pkg.fazccb(
1443: X_book => ret.book,
1444: X_cat_id => l_asset_cat_rec_g.category_id
1445: ,p_log_level_rec => p_log_level_rec) then
1446: fa_srvr_msg.add_message(calling_fn => l_calling_fn

Line 3014: if not fa_cache_pkg.fazcff (d_cal, book,

3010: fa_debug_pkg.add('farboe','J in reverse',3
3011: ,p_log_level_rec => p_log_level_rec);
3012: end if;
3013:
3014: if not fa_cache_pkg.fazcff (d_cal, book,
3015: current_fiscal_yr, period_fracs
3016: ,p_log_level_rec => p_log_level_rec) then
3017: fa_srvr_msg.add_message(calling_fn => l_calling_fn
3018: ,p_log_level_rec => p_log_level_rec);

Line 3395: if not fa_cache_pkg.fazcct(p_cal) then

3391:
3392: temp_start_pp := 0;
3393:
3394: -- Get the number of periods per year in the rate calendar
3395: if not fa_cache_pkg.fazcct(p_cal) then
3396: fa_srvr_msg.add_message(calling_fn => 'fa_gainloss_ret_pkg.fagfpc'
3397: ,p_log_level_rec => p_log_level_rec);
3398: raise farboe_err;
3399: end if;

Line 3401: p_pers_per_yr := fa_cache_pkg.fazcct_record.number_per_fiscal_year;

3397: ,p_log_level_rec => p_log_level_rec);
3398: raise farboe_err;
3399: end if;
3400:
3401: p_pers_per_yr := fa_cache_pkg.fazcct_record.number_per_fiscal_year;
3402:
3403: if p_pers_per_yr <> 365 then
3404: if (depreciate_lastyr and not
3405:

Line 3414: if not fa_cache_pkg.fazcbc(book) then

3410: (h_same_fy = 1 and (not (h_depr_first_year_ret = 1)))) then
3411: if (h_same_fy = 1) then
3412:
3413: -- Get the Fiscal Year Name from FA_BOOK_CONTROLS cache
3414: if not fa_cache_pkg.fazcbc(book) then
3415: raise farboe_err;
3416:
3417: end if;
3418:

Line 3419: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;

3415: raise farboe_err;
3416:
3417: end if;
3418:
3419: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;
3420:
3421: -- Get the prorate period, and the corresponding fiscal year
3422: if not fa_cache_pkg.fazccp(p_cal, fy_name, dpr.prorate_jdate,
3423: pp_begin, y_begin, dummy_num

Line 3422: if not fa_cache_pkg.fazccp(p_cal, fy_name, dpr.prorate_jdate,

3418:
3419: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;
3420:
3421: -- Get the prorate period, and the corresponding fiscal year
3422: if not fa_cache_pkg.fazccp(p_cal, fy_name, dpr.prorate_jdate,
3423: pp_begin, y_begin, dummy_num
3424: ,p_log_level_rec => p_log_level_rec) then
3425: raise farboe_err;
3426:

Line 3434: if not fa_cache_pkg.fazccp(p_cal, fy_name, dpr.deprn_start_jdate,

3430: Changed dpr.prorate_jdate to dpr.deprn_start_jdate in call fazccp
3431: to make it in sinc with the pro*c code
3432: */
3433: -- Get the depreciation start prorate period
3434: if not fa_cache_pkg.fazccp(p_cal, fy_name, dpr.deprn_start_jdate,
3435: dpp_begin, dpy_begin, dummy_num
3436: ,p_log_level_rec => p_log_level_rec) then
3437: raise farboe_err;
3438:

Line 3479: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name,

3475: -- We can remove the logic above after some more verifications.
3476:
3477: if h_Brow_deprn_reserve = 0 then /*Bug 7595090. Make sure that calc catchup should not be called when the asset is added with Depreciation Reserve */
3478: -- Bug# 5018194
3479: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name,
3480: bk.deprn_start_jdate,
3481: deprn_start_pnum, deprn_start_fy, dummy_num) then
3482: fa_srvr_msg.add_message(calling_fn => l_calling_fn);
3483: raise farboe_err;

Line 3557: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name,

3553: fa_debug_pkg.add('farboe','h_ret_pjdate',h_ret_pjdate, p_log_level_rec);
3554: end if;
3555:
3556: -- Bug# 5018194: Added additional fazccp to calculate a correct deprn_start_pnum
3557: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name,
3558: bk.deprn_start_jdate,
3559: deprn_start_pnum, deprn_start_fy, dummy_num) then
3560: fa_srvr_msg.add_message(calling_fn => l_calling_fn);
3561: raise farboe_err;

Line 3571: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name, h_ret_pjdate,

3567: end if;
3568:
3569:
3570: -- Get the depreciation start prorate period
3571: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name, h_ret_pjdate,
3572: h_ret_pp, dummy_num2, dummy_num,
3573: p_log_level_rec => p_log_level_rec) then
3574: raise farboe_err;
3575: end if;

Line 3747: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name, h_ret_pjdate,

3743: ,p_log_level_rec => p_log_level_rec);
3744: end if;
3745:
3746: -- Get the depreciation start prorate period
3747: if not fa_cache_pkg.fazccp(p_cal, fiscal_year_name, h_ret_pjdate,
3748: h_ret_pp, dummy_num2, dummy_num
3749: ,p_log_level_rec => p_log_level_rec) then
3750: raise farboe_err;
3751: end if;

Line 3999: if not fa_cache_pkg.fazcbc(ret.book) then

3995: h_stop_pdnum := cpdnum;
3996:
3997: /* Determine the period number to start marching forward */
3998:
3999: if not fa_cache_pkg.fazcbc(ret.book) then
4000: fa_srvr_msg.add_message(calling_fn => l_calling_fn
4001: ,p_log_level_rec => p_log_level_rec);
4002: raise fagpdp_err;
4003: end if;

Line 4005: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;

4001: ,p_log_level_rec => p_log_level_rec);
4002: raise fagpdp_err;
4003: end if;
4004:
4005: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;
4006:
4007: if not fa_cache_pkg.fazccp(bk.d_cal, fy_name,
4008: bk.deprn_start_jdate,
4009: deprn_start_pnum, deprn_start_fy, dummy

Line 4007: if not fa_cache_pkg.fazccp(bk.d_cal, fy_name,

4003: end if;
4004:
4005: fy_name := fa_cache_pkg.fazcbc_record.fiscal_year_name;
4006:
4007: if not fa_cache_pkg.fazccp(bk.d_cal, fy_name,
4008: bk.deprn_start_jdate,
4009: deprn_start_pnum, deprn_start_fy, dummy
4010: ,p_log_level_rec => p_log_level_rec) then
4011: fa_srvr_msg.add_message(calling_fn => l_calling_fn

Line 5567: l_asset_hdr_rec.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;

5563: CLOSE c_get_unit;
5564:
5565: l_asset_hdr_rec.asset_id := bk.group_asset_id;
5566: l_asset_hdr_rec.book_type_code := ret.book;
5567: l_asset_hdr_rec.set_of_books_id := fa_cache_pkg.fazcbc_record.set_of_books_id;
5568:
5569: if not FA_UTIL_PVT.get_asset_cat_rec (
5570: p_asset_hdr_rec => l_asset_hdr_rec,
5571: px_asset_cat_rec => l_asset_cat_rec,

Line 5579: if not fa_cache_pkg.fazccb(

5575: ,p_log_level_rec => p_log_level_rec);
5576: return(FALSE);
5577: end if;
5578:
5579: if not fa_cache_pkg.fazccb(
5580: X_book => ret.book,
5581: X_cat_id => l_asset_cat_rec.category_id
5582: ,p_log_level_rec => p_log_level_rec) then
5583: fa_srvr_msg.add_message(calling_fn => l_calling_fn

Line 5614: adj_row.account := fa_cache_pkg.fazccb_record.deprn_reserve_acct;

5610: ret.rsv_retired := adj_row.adjustment_amount;
5611: ret.reserve_retired := adj_row.adjustment_amount;
5612: --Bug7713533 ends here
5613:
5614: adj_row.account := fa_cache_pkg.fazccb_record.deprn_reserve_acct;
5615: adj_row.account_type := 'DEPRN_RESERVE_ACCT';
5616: adj_row.adjustment_type := 'RESERVE';
5617: adj_row.selection_thid := 0;
5618: adj_row.debit_credit_flag := 'DR';

Line 5668: adj_row.account := fa_cache_pkg.fazccb_record.bonus_deprn_expense_acct;

5664: else
5665: adj_row.adjustment_amount := ret.bonus_rsv_retired;
5666: end if;
5667:
5668: adj_row.account := fa_cache_pkg.fazccb_record.bonus_deprn_expense_acct;
5669: adj_row.account_type := 'BONUS_DEPRN_RESERVE_ACCT';
5670: adj_row.adjustment_type := 'BONUS RESERVE';
5671: adj_row.selection_thid := 0;
5672: adj_row.debit_credit_flag := 'DR';