11: g_end_date2 fa_calendar_periods.end_date%TYPE;
12: g_num_per_fy fa_calendar_types.number_per_fiscal_year%TYPE;
13:
14: FUNCTION faxcdb(
15: rule_in IN fa_std_types.fa_deprn_rule_in_struct,
16: rule_out OUT NOCOPY fa_std_types.fa_deprn_rule_out_struct,
17: p_amortization_start_date IN date default null,
18: p_log_level_rec IN FA_API_TYPES.log_level_rec_type default null)
19: return boolean is
12: g_num_per_fy fa_calendar_types.number_per_fiscal_year%TYPE;
13:
14: FUNCTION faxcdb(
15: rule_in IN fa_std_types.fa_deprn_rule_in_struct,
16: rule_out OUT NOCOPY fa_std_types.fa_deprn_rule_out_struct,
17: p_amortization_start_date IN date default null,
18: p_log_level_rec IN FA_API_TYPES.log_level_rec_type default null)
19: return boolean is
20:
982: -- Bug 7174365 Modified If condition to unchange adjusted cost for flat rate cost basis method.
983: IF
984: g_rule_in.amortization_start_date is null or
985: (g_rule_in.amortization_start_date is not null
986: and fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_FLAT
987: and fa_cache_pkg.fazccmt_record.deprn_basis_rule = fa_std_types.FAD_DBR_COST)
988: THEN
989: g_rule_out.new_adjusted_cost := g_rule_in.old_adjusted_cost;
990: g_rule_in.use_old_adj_cost_flag :='Y';
983: IF
984: g_rule_in.amortization_start_date is null or
985: (g_rule_in.amortization_start_date is not null
986: and fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_FLAT
987: and fa_cache_pkg.fazccmt_record.deprn_basis_rule = fa_std_types.FAD_DBR_COST)
988: THEN
989: g_rule_out.new_adjusted_cost := g_rule_in.old_adjusted_cost;
990: g_rule_in.use_old_adj_cost_flag :='Y';
991:
2633: begin
2634:
2635: -- Skipping entire process for straight line and flat-cost PE and User rec cost deprn basis
2636: -- rule because it is unnecessary.
2637: if (not(fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_CALC or
2638: (fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_FLAT and
2639: fa_cache_pkg.fazccmt_record.deprn_basis_rule = fa_std_types.FAD_DBR_COST and
2640: fa_cache_pkg.fazcdbr_record.rule_name in ('PERIOD END BALANCE', 'USE RECOVERABLE COST'))
2641: )) then
2634:
2635: -- Skipping entire process for straight line and flat-cost PE and User rec cost deprn basis
2636: -- rule because it is unnecessary.
2637: if (not(fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_CALC or
2638: (fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_FLAT and
2639: fa_cache_pkg.fazccmt_record.deprn_basis_rule = fa_std_types.FAD_DBR_COST and
2640: fa_cache_pkg.fazcdbr_record.rule_name in ('PERIOD END BALANCE', 'USE RECOVERABLE COST'))
2641: )) then
2642:
2635: -- Skipping entire process for straight line and flat-cost PE and User rec cost deprn basis
2636: -- rule because it is unnecessary.
2637: if (not(fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_CALC or
2638: (fa_cache_pkg.fazccmt_record.rate_source_rule = fa_std_types.FAD_RSR_FLAT and
2639: fa_cache_pkg.fazccmt_record.deprn_basis_rule = fa_std_types.FAD_DBR_COST and
2640: fa_cache_pkg.fazcdbr_record.rule_name in ('PERIOD END BALANCE', 'USE RECOVERABLE COST'))
2641: )) then
2642:
2643: -------------------------------------------------
3177: p_trans_rec_adj IN fa_api_types.trans_rec_type,
3178: p_period_rec IN fa_api_types.period_rec_type,
3179: p_asset_retire_rec IN fa_api_types.asset_retire_rec_type,
3180: p_unplanned_deprn_rec IN fa_api_types.unplanned_deprn_rec_type,
3181: p_dpr IN fa_std_types.dpr_struct,
3182: p_fiscal_year IN number,
3183: p_period_num IN number,
3184: p_period_counter IN number,
3185: p_recoverable_cost IN number,
3210: px_new_formula_factor IN OUT NOCOPY number,
3211: x_annual_deprn_rounding_flag IN OUT NOCOPY varchar2,
3212: p_log_level_rec IN FA_API_TYPES.log_level_rec_type default null) return BOOLEAN IS
3213:
3214: h_rule_in fa_std_types.fa_deprn_rule_in_struct;
3215: h_rule_out fa_std_types.fa_deprn_rule_out_struct;
3216:
3217: tmp_method_code varchar2(12);
3218: tmp_life_in_months number(4);
3211: x_annual_deprn_rounding_flag IN OUT NOCOPY varchar2,
3212: p_log_level_rec IN FA_API_TYPES.log_level_rec_type default null) return BOOLEAN IS
3213:
3214: h_rule_in fa_std_types.fa_deprn_rule_in_struct;
3215: h_rule_out fa_std_types.fa_deprn_rule_out_struct;
3216:
3217: tmp_method_code varchar2(12);
3218: tmp_life_in_months number(4);
3219:
3564: p_trans_rec_adj IN fa_api_types.trans_rec_type,
3565: p_period_rec IN fa_api_types.period_rec_type,
3566: p_asset_retire_rec IN fa_api_types.asset_retire_rec_type,
3567: p_unplanned_deprn_rec IN fa_api_types.unplanned_deprn_rec_type,
3568: p_dpr IN fa_std_types.dpr_struct,
3569: p_fiscal_year IN number,
3570: p_period_num IN number,
3571: p_period_counter IN number,
3572: p_recoverable_cost IN number,