4: --
5: -- FUNCTION faxindd
6: --
7:
8: g_print_debug boolean := fa_cache_pkg.fa_print_debug;
9:
10: FUNCTION faxindd (X_book_type_code VARCHAR2,
11: X_asset_id NUMBER,
12: X_period_counter NUMBER := NULL,
364:
365: h_msg_name := 'FA_SHARED_DATA_ERR_BC';
366:
367: -- bug# 2140468 - use cache
368: h_dist_book := fa_cache_pkg.fazcbc_record.distribution_source_book;
369:
370: h_msg_name := 'FA_SHARED_DATA_ERR_DH';
371: /* Bug 8237945 ... Since this is called only in Period of Addition, and in Period of addition we always have to take Distributions at the time of additions into consideration . Commented dh.date_ineffective is null condition*/
372: /* Bug 8281792 ... We need to pass h_dist_book for book_type_code, since we can have a situation where we are using Tax Book and fa_distribution_history does not contain units. Also rewritten the query using EXISTS cluase*/