[Home] [Help]
37: l_amount_old number := p_amount;
38: --l_path varchar2(150) := g_path||'do_round';
39: begin
40: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'--- Inside Round() ---');
41: IF IGI_IAC_COMMON_UTILS.Iac_Round(X_Amount => l_amount, X_Book => p_book_type_code)
42: THEN
43: p_amount := l_amount;
44: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'IGI_IAC_COMMON_UTILS.Iac_Round is TRUE');
45: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'p_amount = '||p_amount);
40: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'--- Inside Round() ---');
41: IF IGI_IAC_COMMON_UTILS.Iac_Round(X_Amount => l_amount, X_Book => p_book_type_code)
42: THEN
43: p_amount := l_amount;
44: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'IGI_IAC_COMMON_UTILS.Iac_Round is TRUE');
45: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'p_amount = '||p_amount);
46: ELSE
47: p_amount := round( l_amount, 2);
48: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'IGI_IAC_COMMON_UTILS.Iac_Round is FALSE');
44: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'IGI_IAC_COMMON_UTILS.Iac_Round is TRUE');
45: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'p_amount = '||p_amount);
46: ELSE
47: p_amount := round( l_amount, 2);
48: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'IGI_IAC_COMMON_UTILS.Iac_Round is FALSE');
49: igi_iac_debug_pkg.debug_other_string(g_state_level,l_path,'p_amount = '||p_amount);
50: END IF;
51: exception when others then
52: p_amount := l_amount_old;
533: l_path varchar2(150);
534:
535: procedure Do_Rounding ( pp_amount in out NOCOPY number ) is
536: begin
537: if not igi_iac_common_utils.iac_round ( x_amount => pp_amount
538: , x_book => l_book_type_Code
539: )
540: then
541: pp_amount := round( pp_amount, 2);
585: procedure Do_Rounding ( pp_amount in out NOCOPY number ) is
586: l_path varchar2(150);
587: begin
588: l_path := g_path||'round_fa_figures.Do_Rounding';
589: if not igi_iac_common_utils.iac_round ( x_amount => pp_amount
590: , x_book => l_book_type_Code
591: )
592: then
593: pp_amount := round( pp_amount, 2);
1478: return false;
1479: END IF;
1480: END IF;
1481:
1482: if not igi_iac_common_utils.iac_round ( x_amount => l_deprn_ytd_total
1483: , x_book => fp_reval_params.reval_asset_params.book_type_code) then
1484: return false;
1485: end if;
1486:
1607:
1608: l_dist_deprn_ytd := l_deprn_ytd_total * l_ytd_factor; /* YTD proration for igi_iac_det_balances */
1609: do_round(l_dist_deprn_ytd,fp_reval_params.reval_output_asset_mvmt.book_type_code);
1610:
1611: if not igi_iac_common_utils.iac_round ( x_amount => l_dist_deprn_ytd
1612: , x_book => fp_reval_params.reval_asset_params.book_type_code ) then
1613: return false;
1614: end if;
1615:
1679: do_round(l_db_fa.ytd_deprn,fp_reval_params.reval_output_asset_mvmt.book_type_code);
1680: l_db_fa.deprn_amount := l_remaining_fa.deprn_amount;
1681: l_db_fa.deprn_reserve := l_remaining_fa.deprn_reserve;
1682:
1683: if not igi_iac_common_utils.iac_round ( x_amount => l_dist_deprn_ytd
1684: , x_book => fp_reval_params.reval_asset_params.book_type_code ) then
1685: return false;
1686: end if;
1687: