DBA Data[Home] [Help]

APPS.FA_ADDITION_PUB dependencies on FA_CACHE_PKG

Line 11: g_release number := fa_cache_pkg.fazarel_release;

7: G_API_VERSION CONSTANT number := 1.0;
8:
9: g_log_level_rec fa_api_types.log_level_rec_type;
10:
11: g_release number := fa_cache_pkg.fazarel_release;
12:
13: --*********************** Private procedures *****************************--
14:
15: function do_all_books (

Line 77: l_tax_book_tbl fa_cache_pkg.fazctbk_tbl_type;

73: l_inv_rec fa_api_types.inv_rec_type;
74: l_inv_trans_rec fa_api_types.inv_trans_rec_type;
75: l_period_rec fa_api_types.period_rec_type;
76:
77: l_tax_book_tbl fa_cache_pkg.fazctbk_tbl_type;
78: l_initial_book boolean := TRUE;
79:
80: -- For primary and reporting books
81: l_reporting_flag varchar2(1) := 'P';

Line 82: l_rsob_tbl fa_cache_pkg.fazcrsob_sob_tbl_type;

78: l_initial_book boolean := TRUE;
79:
80: -- For primary and reporting books
81: l_reporting_flag varchar2(1) := 'P';
82: l_rsob_tbl fa_cache_pkg.fazcrsob_sob_tbl_type;
83: l_mrc_asset_hdr_rec fa_api_types.asset_hdr_rec_type;
84: l_mrc_asset_fin_rec_adj fa_api_types.asset_fin_rec_type;
85: l_mrc_asset_fin_rec_new fa_api_types.asset_fin_rec_type;
86: l_mrc_asset_deprn_rec_adj fa_api_types.asset_deprn_rec_type;

Line 125: g_release := fa_cache_pkg.fazarel_release;

121: raise add_err1;
122: end if;
123: end if;
124:
125: g_release := fa_cache_pkg.fazarel_release;
126:
127: -- Initialize message list if p_init_msg_list is set to TRUE.
128: if (fnd_api.to_boolean(p_init_msg_list)) then
129: -- initialize error message stack.

Line 204: if (NOT fa_cache_pkg.fazcbc (X_book => px_asset_hdr_rec.book_type_code,

200: end if;
201: /*bug#16426081 */
202:
203: -- Call the cache for the primary transaction book
204: if (NOT fa_cache_pkg.fazcbc (X_book => px_asset_hdr_rec.book_type_code,
205: p_log_level_rec => g_log_level_rec)) then
206: raise add_err1;
207: end if;
208:

Line 254: if (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') then

250: end if;
251: end if;
252:
253: -- Call the cache to get the dependent tax books
254: if (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') then
255: if (NOT fa_cache_pkg.fazctbk (
256: x_corp_book => px_asset_hdr_rec.book_type_code,
257: x_asset_type => px_asset_type_rec.asset_type,
258: x_tax_book_tbl => l_tax_book_tbl,

Line 255: if (NOT fa_cache_pkg.fazctbk (

251: end if;
252:
253: -- Call the cache to get the dependent tax books
254: if (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') then
255: if (NOT fa_cache_pkg.fazctbk (
256: x_corp_book => px_asset_hdr_rec.book_type_code,
257: x_asset_type => px_asset_type_rec.asset_type,
258: x_tax_book_tbl => l_tax_book_tbl,
259: p_log_level_rec => g_log_level_rec)) then

Line 300: if (NOT fa_cache_pkg.fazcbc (X_book => l_asset_hdr_rec.book_type_code,

296: l_initial_book := FALSE;
297: end if;
298:
299: -- call the cache for the primary transaction book
300: if (NOT fa_cache_pkg.fazcbc (X_book => l_asset_hdr_rec.book_type_code,
301: p_log_level_rec => g_log_level_rec)) then
302: raise add_err1;
303: end if;
304:

Line 306: fa_cache_pkg.fazcbc_record.set_of_books_id;

302: raise add_err1;
303: end if;
304:
305: l_asset_hdr_rec.set_of_books_id :=
306: fa_cache_pkg.fazcbc_record.set_of_books_id;
307:
308: if (g_log_level_rec.statement_level) then
309: fa_debug_pkg.add('Corporate/Tax Book','c_t_book',
310: l_asset_hdr_rec.book_type_code,

Line 322: if (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') then

318: p_log_level_rec => g_log_level_rec)) then
319: raise add_err1;
320: end if;
321:
322: if (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') then
323: -- Set the transaction_header_id for the corp book for later.
324: px_trans_rec.transaction_header_id :=
325: l_trans_rec.transaction_header_id;
326:

Line 420: (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') and

416: -- ignore group assets that might be coming from mass additions
417: -- as we don't want the invoice info maintained
418:
419: if (px_inv_tbl.count > 0) and
420: (fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') and
421: (px_asset_type_rec.asset_type <> 'GROUP')then
422:
423: if (l_trans_rec.calling_interface = 'FAMAPT') then
424: l_inv_trans_rec.transaction_type := 'MASS ADDITION';

Line 482: elsif (nvl(fa_cache_pkg.fazcbc_record.allow_cip_dep_group_flag, 'N') = 'Y') then

478:
479:
480: if (px_asset_type_rec.asset_type <> 'CIP') then
481: l_asset_fin_rec_new.cip_cost := 0;
482: elsif (nvl(fa_cache_pkg.fazcbc_record.allow_cip_dep_group_flag, 'N') = 'Y') then
483: l_asset_fin_rec_new.cip_cost := l_cip_cost;
484: else
485: l_asset_fin_rec_new.cip_cost := l_asset_fin_rec_new.cost;
486: end if;

Line 542: if (NOT fa_cache_pkg.fazcsob (

538: to_char (l_asset_hdr_rec.set_of_books_id));
539: end if;
540:
541: -- Call cache to verify whether this is a primary or reporting book
542: if (NOT fa_cache_pkg.fazcsob (
543: X_set_of_books_id => l_asset_hdr_rec.set_of_books_id,
544: X_mrc_sob_type_code => l_reporting_flag
545: , p_log_level_rec => g_log_level_rec)) then
546: raise add_err1;

Line 551: if (NOT fa_cache_pkg.fazcrsob (

547: end if;
548:
549: -- Call the reporting books cache to get rep books.
550: if (l_reporting_flag <> 'R') then
551: if (NOT fa_cache_pkg.fazcrsob (
552: x_book_type_code => l_asset_hdr_rec.book_type_code,
553: x_sob_tbl => l_rsob_tbl,
554: p_log_level_rec => g_log_level_rec)) then
555: raise add_err1;

Line 575: if (NOT fa_cache_pkg.fazcbcs (

571: l_reporting_flag := 'R';
572: end if;
573:
574: -- Need to always call fazcbcs
575: if (NOT fa_cache_pkg.fazcbcs (
576: X_book => l_mrc_asset_hdr_rec.book_type_code,
577: X_set_of_books_id => l_mrc_asset_hdr_rec.set_of_books_id,
578: p_log_level_rec => g_log_level_rec)) then
579: raise add_err1;

Line 695: if ((fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') AND

691: end if;
692:
693: -- If this is the corp primary book, we need to store the revised
694: -- data back in the original recs.
695: if ((fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') AND
696: (l_reporting_flag <> 'R')) then
697: px_asset_fin_rec := l_mrc_asset_fin_rec_new;
698: end if;
699:

Line 863: if (fa_cache_pkg.fazcbc_record.allow_cip_dep_group_flag = 'Y') then

859:
860: -- copy the delta cost if any into the group's fin_rec
861: if (px_asset_type_rec.asset_type = 'CIP') then
862:
863: if (fa_cache_pkg.fazcbc_record.allow_cip_dep_group_flag = 'Y') then
864: l_group_asset_fin_rec_adj.cip_cost := nvl(l_mrc_asset_fin_rec_new.cip_cost, 0);
865: l_group_asset_fin_rec_adj.cost := nvl(l_mrc_asset_fin_rec_new.cost, 0) - nvl(l_mrc_asset_fin_rec_new.cip_cost, 0);
866: else
867: l_group_asset_fin_rec_adj.cip_cost := nvl(l_mrc_asset_fin_rec_new.cip_cost, 0);

Line 903: if ((fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') AND

899: end if; -- group asset id not null
900:
901:
902: -- add asset to the Asset Hierarchy for CORP book
903: if ((fa_cache_pkg.fazcbc_record.book_class = 'CORPORATE') AND
904: (l_reporting_flag <> 'R')) then
905: if px_asset_hierarchy_rec.parent_hierarchy_id is not null then
906: if not fa_asset_hierarchy_pvt.add_asset(
907: p_asset_hdr_rec => l_mrc_asset_hdr_rec,

Line 1083: fa_cache_pkg.fazcbc_record.book_class = 'TAX') then

1079:
1080: -- For a tax book, we need to use the rate from the corporate book
1081: -- if it is not a manual transaction.
1082: if (p_trans_rec.source_transaction_header_id is not null and
1083: fa_cache_pkg.fazcbc_record.book_class = 'TAX') then
1084: if not FA_MC_UTIL_PVT.get_existing_rate
1085: (p_set_of_books_id => p_report_asset_hdr_rec.set_of_books_id,
1086: p_transaction_header_id => p_trans_rec.source_transaction_header_id,
1087: px_rate => l_exchange_rate,