593:
594: l_batch_step_charges_in.batch_id := p_batch_id;
595: l_batch_step_charges_in.batchstep_id := p_batchstep_id;
596:
597: IF NOT (gme_batch_step_charge_dbl.delete_row
598: (p_batch_step_charges_in => l_batch_step_charges_in) ) THEN
599: RAISE clear_chg_error;
600: END IF;
601: ELSE
632: l_batch_step_charges_in.batch_id := p_batch_id;
633: l_batch_step_charges_in.batchstep_id :=
634: l_gme_batchstep_ids_tab (i);
635:
636: IF NOT (gme_batch_step_charge_dbl.delete_row
637: (p_batch_step_charges_in => l_batch_step_charges_in) ) THEN
638: RAISE clear_chg_error;
639: END IF;
640: ELSE
783:
784: FOR i IN 1 .. (p_no_of_charges - 1) LOOP
785: l_batchstep_charges_in.charge_number := i;
786:
787: IF (gme_batch_step_charge_dbl.insert_row
788: (p_batch_step_charges_in => l_batchstep_charges_in
789: ,x_batch_step_charges => l_batchstep_charges_in) ) THEN
790: IF NVL (g_debug, -1) = gme_debug.g_log_statement THEN
791: gme_debug.put_line
802: END IF;
803:
804: l_batchstep_charges_in.charge_number := p_no_of_charges;
805:
806: IF (gme_batch_step_charge_dbl.insert_row
807: (p_batch_step_charges_in => l_batchstep_charges_in
808: ,x_batch_step_charges => l_batchstep_charges_in) ) THEN
809: IF NVL (g_debug, -1) = gme_debug.g_log_statement THEN
810: gme_debug.put_line ('sucessfully inserted into batchstep charges');