DBA Data[Home] [Help]

APPS.PN_VAR_TRUEUP_PKG dependencies on PN_VAR_TRUEUP_PKG

Line 1: PACKAGE BODY PN_VAR_TRUEUP_PKG AS

1: PACKAGE BODY PN_VAR_TRUEUP_PKG AS
2: -- $Header: PNVRTRPB.pls 120.0.12010000.2 2009/12/22 11:11:37 jsundara ship $
3:
4: TYPE two_nums_rec IS RECORD(
5: period_id NUMBER,

Line 888: PN_VAR_TRUEUP_PKG.apply_def_neg_rent(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);

884:
885: --If this is a non cummulative apply_defered_neg_rent
886: --Do not apply def_neg_rent in TU invoices
887: IF (inv_rec.true_up_amt IS NULL) THEN
888: PN_VAR_TRUEUP_PKG.apply_def_neg_rent(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);
889: ELSE
890: l_abated_rent := inv_rec.constr_actual_rent;
891: G_UNABATED_RENT(G_UNABATED_RENT.COUNT+1).period_id := p_period_id;
892: G_UNABATED_RENT(G_UNABATED_RENT.COUNT).amount := l_abated_rent;

Line 897: PN_VAR_TRUEUP_PKG.apply_allow(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_allow_t, l_allow_tu_t, l_abated_rent);

893: END IF;
894:
895: IF (l_abat_order = pn_var_rent_calc_pkg.G_ALLOWANCE_FIRST) THEN
896: pnp_debug_pkg.log('call pnp_debug_pkg.log');
897: PN_VAR_TRUEUP_PKG.apply_allow(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_allow_t, l_allow_tu_t, l_abated_rent);
898: pnp_debug_pkg.log('complete');
899: END IF;--Apply allowance.
900:
901:

Line 903: PN_VAR_TRUEUP_PKG.populate_abat(p_var_rent_id , p_period_id, inv_rec.var_rent_inv_id);

899: END IF;--Apply allowance.
900:
901:
902: pnp_debug_pkg.log('call populate_abat');
903: PN_VAR_TRUEUP_PKG.populate_abat(p_var_rent_id , p_period_id, inv_rec.var_rent_inv_id);
904: pnp_debug_pkg.log('complete');
905:
906:
907: pnp_debug_pkg.log('call apply_abat');

Line 908: PN_VAR_TRUEUP_PKG.apply_abat(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);

904: pnp_debug_pkg.log('complete');
905:
906:
907: pnp_debug_pkg.log('call apply_abat');
908: PN_VAR_TRUEUP_PKG.apply_abat(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);
909: pnp_debug_pkg.log('complete');
910:
911:
912: IF(l_abat_order <> pn_var_rent_calc_pkg.G_ALLOWANCE_FIRST) THEN

Line 914: PN_VAR_TRUEUP_PKG.apply_allow(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_allow_t, l_allow_tu_t, l_abated_rent);

910:
911:
912: IF(l_abat_order <> pn_var_rent_calc_pkg.G_ALLOWANCE_FIRST) THEN
913: pnp_debug_pkg.log('call pnp_debug_pkg.log');
914: PN_VAR_TRUEUP_PKG.apply_allow(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_allow_t, l_allow_tu_t, l_abated_rent);
915: pnp_debug_pkg.log('complete');
916: END IF;--Apply allowance
917:
918:

Line 921: PN_VAR_TRUEUP_PKG.populate_neg_rent(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);

917:
918:
919: pnp_debug_pkg.log('called populate_neg_rent');
920: IF (inv_rec.true_up_amt IS NULL) THEN
921: PN_VAR_TRUEUP_PKG.populate_neg_rent(p_var_rent_id, p_period_id, inv_rec.var_rent_inv_id, l_abated_rent);
922: END IF;
923: pnp_debug_pkg.log('complete');
924:
925:

Line 2534: ELSIF pn_var_trueup_pkg.can_do_trueup

2530: LY, FLY
2531: */
2532: NULL;
2533:
2534: ELSIF pn_var_trueup_pkg.can_do_trueup
2535: ( p_var_rent_id => p_var_rent_id
2536: ,p_period_id => prd_rec.period_id)
2537: THEN
2538: /* no true up if calculation not done for all invoiceing periods

Line 2742: pn_var_trueup_pkg.post_summary_trueup

2738: END LOOP; /* loop for all lines in the period */
2739:
2740: pnp_debug_pkg.log(' tot_trueup_rent for Period : '||l_tot_trueup_rent);
2741: pnp_debug_pkg.log(' ');
2742: pn_var_trueup_pkg.post_summary_trueup
2743: ( p_var_rent_id => p_var_rent_id
2744: ,p_period_id => prd_rec.period_id
2745: ,p_proration_rule => l_proration_rule);
2746:

Line 2774: pn_var_trueup_pkg.insert_invoice_trueup

2770: l_proration_rule IN (pn_var_rent_calc_pkg.G_PRORUL_LY
2771: ,pn_var_rent_calc_pkg.G_PRORUL_FLY) AND
2772: prd_rec.partial_period = 'Y'))
2773: THEN
2774: pn_var_trueup_pkg.insert_invoice_trueup
2775: ( p_var_rent_id => p_var_rent_id
2776: ,p_period_id => prd_rec.period_id);
2777: END IF;
2778: END LOOP;

Line 2912: pn_var_trueup_pkg.calculate_trueup

2908:
2909: FOR vr_rec IN get_vr_prop_c(p_building_id => bld_rec.location_id)
2910: LOOP
2911:
2912: pn_var_trueup_pkg.calculate_trueup
2913: ( p_var_rent_id => vr_rec.var_rent_id
2914: ,p_prd_date => l_date);
2915:
2916: END LOOP;

Line 2924: pn_var_trueup_pkg.calculate_trueup

2920: ELSIF p_property_code IS NULL THEN
2921:
2922: FOR vr_rec IN get_vr_c LOOP
2923:
2924: pn_var_trueup_pkg.calculate_trueup
2925: ( p_var_rent_id => vr_rec.var_rent_id
2926: ,p_prd_date => l_date);
2927:
2928: END LOOP;

Line 2949: END PN_VAR_TRUEUP_PKG;

2945: RAISE;
2946: END;
2947:
2948:
2949: END PN_VAR_TRUEUP_PKG;