325: if (v_led <> 0 )then
326: -- get the life_in_months for the LED
327: x_err_stage:= 'calc_life';
328: x_life_out:= 0;
329: fa_cua_mass_update1_pkg.calc_life ( x_book_type_code
330: , x_prorate_date
331: , to_date( v_led, 'J')
332: , x_deprn_method_code
333: , x_life_out
905:
906: if(v_rule_det_rec.precedence_level IS NOT NULL ) then
907: if( v_rule_det_rec.precedence_level = 'TOP') then
908: x_err_stage:= 'Calling calc_life';
909: fa_cua_mass_update1_pkg.calc_life ( x_book_type_code
910: , v_prorate_date
911: , v_top_attr_val_rec.life_end_date
912: , v_deprn_method_code
913: , x_life_in_months_out
922: g_derive_from_entity_value:= v_top_node_id;
923: g_derive_from_entity:= 'NODE-P';
924: elsif( v_rule_det_rec.precedence_level = 'LOWEST') then
925: x_err_stage:= 'Calling calc_life';
926: fa_cua_mass_update1_pkg.calc_life ( x_book_type_code
927: , v_prorate_date
928: , v_lowest_attr_val_rec.life_end_date
929: , v_deprn_method_code
930: , x_life_in_months_out