DBA Data[Home] [Help]

APPS.FTE_TL_RATING SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 8

PROCEDURE Update_Distance_To_Next_Stop(
	p_trip_id IN NUMBER,
	x_return_status  OUT NOCOPY VARCHAR2)
IS
CURSOR get_trip_stops(c_trip_id IN NUMBER) IS
SELECT s.stop_id
FROM WSH_TRIP_STOPS s
WHERE s.trip_id=c_trip_id
ORDER BY s.stop_sequence_number;
Line: 35

 	FTE_FREIGHT_PRICING_UTIL.set_method(l_log_level,'Update_Distance_To_Next_Stop','start');
Line: 78

		      UPDATE wsh_trip_stops
		      SET  	distance_to_next_stop = l_distances(i),
				distance_uom = l_distance_uom
		      WHERE stop_id = l_stop_ids(i);
Line: 86

		FTE_FREIGHT_PRICING_UTIL.print_msg(FTE_FREIGHT_PRICING_UTIL.G_DBG,'Update_Distance_To_Next_Stop:'||p_trip_id||' has more than 2 stops');
Line: 92

	FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Update_Distance_To_Next_Stop');
Line: 104

	   FTE_FREIGHT_PRICING_UTIL.set_exception('Update_Distance_To_Next_Stop',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_fpa_get_trip_inf_fail');
Line: 105

	   FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Update_Distance_To_Next_Stop');
Line: 110

	FTE_FREIGHT_PRICING_UTIL.set_exception('Update_Distance_To_Next_Stop',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_others');
Line: 112

	FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Update_Distance_To_Next_Stop');
Line: 115

END Update_Distance_To_Next_Stop;
Line: 135

	SELECT	c.default_vehicle_type_id
	FROM 	WSH_CARRIER_SERVICES c ,
		FTE_LANES l
	WHERE 	c.carrier_id=l.carrier_id and
		c.service_level=l.service_type_code and
		l.lane_id=c_lane_id;
Line: 144

	SELECT	c.default_vehicle_type_id
	FROM 	WSH_CARRIER_SERVICES c ,
		FTE_LANES l,
		FTE_SCHEDULES s
	WHERE 	c.carrier_id=l.carrier_id and
		c.service_level=l.service_type_code and
		s.schedules_id=c_schedule_id and
		s.lane_id=l.lane_id;
Line: 156

	SELECT 	wcvt.vehicle_type_id,
		l.carrier_id
	FROM 	wsh_carrier_vehicle_types wcvt,
		fte_lanes l
	WHERE 	l.lane_id=c_lane_id
		and l.carrier_id=wcvt.carrier_id
		and wcvt.assigned_flag='Y';
Line: 167

	SELECT 	wcvt.vehicle_type_id,
		l.carrier_id
	FROM 	wsh_carrier_vehicle_types wcvt,
		fte_lanes l ,
		fte_schedules s
	WHERE 	s.schedules_id=c_schedule_id
		and l.lane_id=s.lane_id
		and l.carrier_id=wcvt.carrier_id
		and wcvt.assigned_flag='Y';
Line: 476

PROCEDURE Update_Pricing_Required_Flag(
	p_trip_id IN NUMBER,
	x_return_status OUT NOCOPY VARCHAR2) IS

	CURSOR lock_dlegs( c_trip_id IN NUMBER ) IS
	SELECT 	dl.reprice_required
	FROM 	wsh_delivery_legs dl ,
		wsh_trip_stops s
	WHERE 	dl.pick_up_stop_id = s.stop_id
		and s.trip_id=c_trip_id
	FOR UPDATE NOWAIT;
Line: 499

 	FTE_FREIGHT_PRICING_UTIL.set_method(l_log_level,'Update_Pricing_Required_Flag','start');
Line: 503

	SAVEPOINT Update_Pricing_Required_Flag;
Line: 509

	UPDATE wsh_delivery_legs dl
	SET dl.reprice_required='N'
	WHERE 	dl.pick_up_stop_id IN
		(select s.stop_id FROM wsh_trip_stops s where
			s.trip_id=p_trip_id );
Line: 515

	FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Update_Pricing_Required_Flag');
Line: 523

	ROLLBACK TO Update_Pricing_Required_Flag;
Line: 525

	FTE_FREIGHT_PRICING_UTIL.set_exception('Update_Pricing_Required_Flag',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_others');
Line: 527

	FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Update_Pricing_Required_Flag');
Line: 530

END Update_Pricing_Required_Flag;
Line: 543

   SELECT count(wd.delivery_id)
   FROM   wsh_new_deliveries wd, wsh_global_parameters wgp
   WHERE (
	  ((wd.shipment_direction in ('I'))
	   and (wgp.rate_ib_dels_fgt_term is not null)
	   and (wd.freight_terms_code is not null)
	   and (wgp.rate_ib_dels_fgt_term <> wd.freight_terms_code)
	  )
   	  OR
	  ((wd.shipment_direction in ('D'))
	   and (wgp.rate_ds_dels_fgt_term_id is not null)
	   and (wd.freight_terms_code is not null)
	   and (wgp.rate_ds_dels_fgt_term_id <> wd.freight_terms_code)
	  )
   	  OR
	  ((nvl(wd.shipment_direction,'O') in ('O','IO'))
           and (wgp.skip_rate_ob_dels_fgt_term is not null)
	   and (wd.freight_terms_code is not null)
 	   and (wgp.skip_rate_ob_dels_fgt_term = wd.freight_terms_code)
	  )
	 )
   AND    wd.delivery_id in
   	(SELECT wdl.delivery_id
   	 FROM   wsh_delivery_legs wdl,
          wsh_trip_stops wts1,
          wsh_trip_stops wts2
   	 WHERE wts1.trip_id = c_trip_id
   	 AND   wts2.trip_id = c_trip_id
   	 AND   wts1.stop_id = wdl.pick_up_stop_id
   	 AND   wts2.stop_id = wdl.drop_off_stop_id
   	);
Line: 579

  SELECT count(a.delivery_id)
  FROM   wsh_new_deliveries a,
	 mtl_parameters b,
	 wsh_carriers c
  WHERE  a.organization_id = b.organization_id
  AND    a.carrier_id = c.carrier_id
  AND    c.manifesting_enabled_flag = 'Y'
  AND    b.carrier_manifesting_flag = 'Y'
  AND    a.delivery_id in
   	(SELECT wdl.delivery_id
   	 FROM   wsh_delivery_legs wdl,
          wsh_trip_stops wts1,
          wsh_trip_stops wts2
   	 WHERE wts1.trip_id = c_trip_id
   	 AND   wts2.trip_id = c_trip_id
   	 AND   wts1.stop_id = wdl.pick_up_stop_id
   	 AND   wts2.stop_id = wdl.drop_off_stop_id
   	);
Line: 601

   SELECT count(wd.delivery_id)
   FROM   wsh_new_deliveries wd, wsh_global_parameters wgp
   WHERE (
	  ((wd.shipment_direction in ('I'))
	   and (wgp.rate_ib_dels_fgt_term is not null)
	   and (wd.freight_terms_code is not null)
	   and (wgp.rate_ib_dels_fgt_term <> wd.freight_terms_code)
	  )
   	  OR
	  ((wd.shipment_direction in ('D'))
	   and (wgp.rate_ds_dels_fgt_term_id is not null)
	   and (wd.freight_terms_code is not null)
	   and (wgp.rate_ds_dels_fgt_term_id <> wd.freight_terms_code)
	  )
   	  OR
	  ((nvl(wd.shipment_direction,'O') in ('O','IO'))
           and (wgp.skip_rate_ob_dels_fgt_term is not null)
	   and (wd.freight_terms_code is not null)
 	   and (wgp.skip_rate_ob_dels_fgt_term = wd.freight_terms_code)
	  )
	 )
   AND    wd.delivery_id in
   	(SELECT wdl.delivery_id
   	 FROM   wsh_delivery_legs wdl,
          wsh_trip_stops wts1,
          wsh_trip_stops wts2
   	 WHERE wts1.trip_id IN (SELECT m.trip_id from fte_trip_moves m where m.move_id= c_move_id)
   	 AND   wts2.trip_id = wts1.trip_id
   	 AND   wts1.stop_id = wdl.pick_up_stop_id
   	 AND   wts2.stop_id = wdl.drop_off_stop_id
   	);
Line: 637

  SELECT count(a.delivery_id)
  FROM   wsh_new_deliveries a,
	 mtl_parameters b,
	 wsh_carriers c
  WHERE  a.organization_id = b.organization_id
  AND    a.carrier_id = c.carrier_id
  AND    c.manifesting_enabled_flag = 'Y'
  AND    b.carrier_manifesting_flag = 'Y'
  AND    a.delivery_id in
   	(SELECT wdl.delivery_id
   	 FROM   wsh_delivery_legs wdl,
          wsh_trip_stops wts1,
          wsh_trip_stops wts2
   	 WHERE wts1.trip_id IN (SELECT m.trip_id from fte_trip_moves m where m.move_id=c_move_id)
   	 AND   wts2.trip_id = wts1.trip_id
   	 AND   wts1.stop_id = wdl.pick_up_stop_id
   	 AND   wts2.stop_id = wdl.drop_off_stop_id
   	);
Line: 772

	SELECT *
	FROM FTE_FREIGHT_COSTS_TEMP fct
	WHERE ( fct.comparison_request_id = c_request_id)
	AND  ((fct.lane_id = c_lane_id) OR (fct.schedule_id= c_schedule_id))
	AND (fct.vehicle_type_id = c_vehicle_type_id)
	AND(fct.CHARGE_SOURCE_CODE='PRICING_ENGINE')
	FOR UPDATE NOWAIT;
Line: 885

		        l_freight_rec.last_update_date:= l_temp_rec.last_update_date;
Line: 886

		        l_freight_rec.last_updated_by:=l_temp_rec.last_updated_by;
Line: 887

		        l_freight_rec.last_update_login:= l_temp_rec.last_update_login;
Line: 890

			l_freight_rec.program_update_date:= l_temp_rec.program_update_date;
Line: 913

		      WSH_FREIGHT_COSTS_PVT.Update_Freight_Cost(
			 p_rowid                  =>  l_rowid,
			 p_freight_cost_info      =>  l_freight_rec,
			 x_return_status          =>  l_return_status);
Line: 920

				FTE_FREIGHT_PRICING_UTIL.set_location(p_loc => 'Update_Freight_Cost');
Line: 921

				raise FTE_FREIGHT_PRICING_UTIL.g_update_freight_cost_failed;
Line: 923

				FTE_FREIGHT_PRICING_UTIL.print_msg(FTE_FREIGHT_PRICING_UTIL.G_WRN,'Update_Freight_Cost returned warning ');
Line: 951

	Update_Pricing_Required_Flag(
		p_trip_id=>p_trip_id,
		x_return_status =>l_return_status);
Line: 967

	DELETE
	FROM FTE_FREIGHT_COSTS_TEMP fct
		WHERE ( fct.comparison_request_id = p_comparison_request_id)
		AND  ((fct.lane_id = p_lane_id) OR (fct.schedule_id= p_schedule_id))
	AND(fct.CHARGE_SOURCE_CODE='PRICING_ENGINE');
Line: 992

WHEN FTE_FREIGHT_PRICING_UTIL.g_update_freight_cost_failed THEN
 	 ROLLBACK TO  Move_Records_To_Main;
Line: 995

         FTE_FREIGHT_PRICING_UTIL.set_exception('Move_Records_To_Main',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_update_freight_cost_failed');
Line: 1047

	SELECT fct.trip_id
	FROM FTE_FREIGHT_COSTS_TEMP fct
	WHERE ( fct.comparison_request_id = c_request_id)
	AND  ((fct.lane_id = c_lane_id) OR (fct.schedule_id= c_schedule_id))
	AND (fct.vehicle_type_id = c_vehicle_type_id)
	AND(fct.CHARGE_SOURCE_CODE='PRICING_ENGINE')
	AND (fct.trip_id IS NOT NULL)
	AND ( fct.trip_id = c_fake_trip_id)
	AND ROWNUM=1;
Line: 1060

	SELECT  dl.delivery_id,
		s.trip_id,
		dl.pick_up_stop_id,
		dl.drop_off_stop_id
	FROM    wsh_delivery_legs dl,
		wsh_trip_stops s
	WHERE   dl.drop_off_stop_id = s.stop_id and
		dl.delivery_leg_id=c_dleg_id;
Line: 1074

	SELECT *
	FROM FTE_FREIGHT_COSTS_TEMP fct
	WHERE ( fct.comparison_request_id = c_request_id)
	AND  ((fct.lane_id = c_lane_id) OR (fct.schedule_id= c_schedule_id))
	AND (fct.vehicle_type_id = c_vehicle_type_id)
	AND(fct.CHARGE_SOURCE_CODE='PRICING_ENGINE')
	FOR UPDATE NOWAIT;
Line: 1252

			l_freight_rec.last_update_date:= l_temp_rec.last_update_date;
Line: 1253

			l_freight_rec.last_updated_by:=l_temp_rec.last_updated_by;
Line: 1254

			l_freight_rec.last_update_login:= l_temp_rec.last_update_login;
Line: 1258

			l_freight_rec.program_update_date:= l_temp_rec.program_update_date;
Line: 1281

			      WSH_FREIGHT_COSTS_PVT.Update_Freight_Cost(
				 p_rowid                  =>  l_rowid,
				 p_freight_cost_info      =>  l_freight_rec,
				 x_return_status          =>  l_return_status);
Line: 1288

					FTE_FREIGHT_PRICING_UTIL.set_location(p_loc => 'Update_Freight_Cost');
Line: 1289

					raise FTE_FREIGHT_PRICING_UTIL.g_update_freight_cost_failed;
Line: 1291

					FTE_FREIGHT_PRICING_UTIL.print_msg(FTE_FREIGHT_PRICING_UTIL.G_WRN,'Update_Freight_Cost returned warning ');
Line: 1319

		Update_Pricing_Required_Flag(
			p_trip_id=>l_trip_id,
			x_return_status =>l_return_status);
Line: 1332

	---Delete  fc temp record
		FTE_FREIGHT_PRICING_UTIL.print_msg(FTE_FREIGHT_PRICING_UTIL.G_DBG,'>>7');
Line: 1335

		DELETE
		FROM FTE_FREIGHT_COSTS_TEMP fct
			WHERE ( fct.comparison_request_id = p_comparison_request_id)
			AND  ((fct.lane_id = p_lane_id) OR (fct.schedule_id= p_schedule_id))
		AND(fct.CHARGE_SOURCE_CODE='PRICING_ENGINE');
Line: 1344

		Update_Distance_To_Next_Stop(
			p_trip_id =>l_trip_id,
			x_return_status=>l_return_status);
Line: 1353

			'Failied to update stop distances for :'||l_trip_id);
Line: 1354

			  raise FTE_FREIGHT_PRICING_UTIL.g_tl_update_dist_stop_fail;
Line: 1397

WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_update_dist_stop_fail THEN
 	 ROLLBACK TO  Move_Dlv_Records_To_Main;
Line: 1400

         FTE_FREIGHT_PRICING_UTIL.set_exception('Move_Dlv_Records_To_Main',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_update_dist_stop_fail');
Line: 1419

WHEN FTE_FREIGHT_PRICING_UTIL.g_update_freight_cost_failed THEN
 	 ROLLBACK TO  Move_Dlv_Records_To_Main;
Line: 1422

         FTE_FREIGHT_PRICING_UTIL.set_exception('Move_Dlv_Records_To_Main',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_update_freight_cost_failed');
Line: 1462

PROCEDURE Delete_Main_Records(
        p_trip_id IN NUMBER,
        x_return_status OUT NOCOPY VARCHAR2) IS

CURSOR lock_trip_recs(c_trip_id IN NUMBER ) IS

        SELECT wfc.freight_cost_id
        FROM wsh_freight_costs wfc
        WHERE   wfc.trip_id = c_trip_id
                and wfc.charge_source_code='PRICING_ENGINE'
        FOR UPDATE NOWAIT;
Line: 1475

        SELECT s.stop_id
        FROM wsh_trip_stops s
        WHERE s.trip_id= c_trip_id;
Line: 1482

        SELECT wfc.freight_cost_id
        FROM wsh_freight_costs wfc
        WHERE wfc.stop_id =c_stop_id
              and wfc.charge_source_code='PRICING_ENGINE'
        FOR UPDATE OF wfc.freight_cost_id NOWAIT;
Line: 1491

        SELECT dl.delivery_leg_id FROM wsh_delivery_legs dl , wsh_trip_stops s
        WHERE dl.pick_up_stop_id=s.stop_id and s.trip_id=p_trip_id;
Line: 1495

        SELECT wfc.freight_cost_id
        FROM wsh_freight_costs wfc,
             wsh_delivery_legs dl ,
             wsh_trip_stops s
        WHERE wfc.delivery_leg_id = dl.delivery_leg_id
              and dl.pick_up_stop_id=s.stop_id
              and s.trip_id=c_trip_id
              and wfc.charge_source_code='PRICING_ENGINE'
              -- and wfc.delivery_detail_id is not null
              FOR UPDATE OF wfc.freight_cost_id NOWAIT;
Line: 1529

        FTE_FREIGHT_PRICING_UTIL.set_method(l_log_level,'Delete_Main_Records','start');
Line: 1533

        SAVEPOINT  Delete_Main_Records;
Line: 1543

	--Delete trip level records

	IF (l_wfc_trip_ids.FIRST IS NOT NULL)
	THEN

		FORALL i IN l_wfc_trip_ids.FIRST..l_wfc_trip_ids.LAST
			DELETE
			FROM wsh_freight_costs wfc
			WHERE wfc.freight_cost_id = l_wfc_trip_ids(i);
Line: 1570

		l_wfc_stop_ids.delete;
Line: 1571

		l_wfc_temp_stop_ids.delete;
Line: 1614

				DELETE
				FROM wsh_freight_costs wfc
				WHERE wfc.freight_cost_id = l_wfc_stop_ids(i) ;
Line: 1642

				--Delete detail level records


				FORALL i IN l_wfc_detail_ids.FIRST..l_wfc_detail_ids.LAST
					DELETE
					FROM wsh_freight_costs wfc
					WHERE wfc.freight_cost_id = l_wfc_detail_ids(i)
					and wfc.delivery_detail_id is not null;
Line: 1655

					UPDATE wsh_freight_costs wfc
					set wfc.unit_amount=null,
					    wfc.total_amount=null,
					    wfc.currency_code=null
					WHERE wfc.freight_cost_id = l_wfc_detail_ids(i)
					and wfc.line_type_code='SUMMARY'
					and wfc.delivery_detail_id is null;
Line: 1671

        FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Delete_Main_Records');
Line: 1678

        ROLLBACK TO Delete_Main_Records;
Line: 1680

        FTE_FREIGHT_PRICING_UTIL.set_exception('Delete_Main_Records',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_others');
Line: 1682

        FTE_FREIGHT_PRICING_UTIL.unset_method(l_log_level,'Delete_Main_Records');
Line: 1685

END Delete_Main_Records;
Line: 1696

	SELECT 	dl.delivery_leg_id
	FROM 	wsh_delivery_legs dl ,
		wsh_trip_stops s
	WHERE 	dl.pick_up_stop_id = s.stop_id
		and s.trip_id=c_trip_id
		and ( NVL(dl.reprice_required,'Y') = 'Y');
Line: 1705

	SELECT 	dl.delivery_leg_id
	FROM 	wsh_delivery_legs dl ,
		wsh_trip_stops s
	WHERE
		s.trip_id IN (
			SELECT m.trip_id from fte_trip_moves m where m.move_id=c_move_id
		)
		and dl.pick_up_stop_id = s.stop_id
		and ( NVL(dl.reprice_required,'Y') = 'Y');
Line: 1974

			l_stop_charges_tab.DELETE;
Line: 2003

				Delete_Main_Records(
					p_trip_id=>l_trip_charges_rec.trip_id,
					x_return_status=>l_return_status);
Line: 2010

					  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail;
Line: 2042

				Update_Pricing_Required_Flag(
				p_trip_id=>l_trip_charges_rec.trip_id,
				x_return_status =>l_return_status);
Line: 2057

			l_stop_charges_tab.DELETE;
Line: 2075

WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail THEN
         x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 2077

         FTE_FREIGHT_PRICING_UTIL.set_exception('Handle_CM_Discount_Variant',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_main_rec_fail');
Line: 2310

			l_stop_charges_tab.DELETE;
Line: 2339

				Delete_Main_Records(
					p_trip_id=>l_trip_charges_rec.trip_id,
					x_return_status=>l_return_status);
Line: 2346

					  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail;
Line: 2379

				Update_Pricing_Required_Flag(
				p_trip_id=>l_trip_charges_rec.trip_id,
				x_return_status =>l_return_status);
Line: 2395

			l_stop_charges_tab.DELETE;
Line: 2428

WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail THEN
         x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 2430

         FTE_FREIGHT_PRICING_UTIL.set_exception('Handle_CM_Rate_Variant',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_main_rec_fail');
Line: 2769

	l_exceptions_tab.delete;
Line: 2832

			l_stop_charges_one_trip_tab.delete;
Line: 2976

 	SELECT tm.move_id
 	FROM	FTE_TRIP_MOVES tm
 	WHERE tm.trip_id=c_trip_id;
Line: 2999

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 3004

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 3141

					Delete_Main_Records(
						p_trip_id => p_trip_id,
						x_return_status =>l_return_status);
Line: 3149

						  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail;
Line: 3192

					Update_Pricing_Required_Flag(
					p_trip_id=>p_trip_id,
					x_return_status =>l_return_status);
Line: 3239

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
    	 ROLLBACK TO TL_Rate_Trip;
Line: 3242

         FTE_FREIGHT_PRICING_UTIL.set_exception('TL_Rate_Trip',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 3246

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_main_rec_fail THEN
    	 ROLLBACK TO TL_Rate_Trip;
Line: 3249

         FTE_FREIGHT_PRICING_UTIL.set_exception('TL_Rate_Trip',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_main_rec_fail');
Line: 3381

	x_lane_sched_sum_rows.DELETE;
Line: 3382

	x_lane_sched_curr_rows.DELETE;
Line: 3426

SELECT fte_pricing_comp_request_s.nextval
FROM   sys.dual;
Line: 3432

SELECT ffct.total_amount, ffct.currency_code
FROM fte_freight_costs_temp ffct, wsh_freight_cost_types wfct
WHERE ffct.freight_cost_type_id = wfct.freight_cost_type_id
AND wfct.name='SUMMARY'
AND ffct.trip_id = c_trip_id
AND ffct.comparison_request_id = c_request_id
AND  nvl(lane_id,-1) = nvl(c_lane_id,-1)
AND  nvl(schedule_id, -1) = nvl(c_schedule_id,-1);
Line: 3494

		FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 3500

			  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 3697

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
          x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 3699

          FTE_FREIGHT_PRICING_UTIL.set_exception('TL_Trip_Price_Compare',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 3754

SELECT fte_pricing_comp_request_s.nextval
FROM   sys.dual;
Line: 3760

SELECT ffct.total_amount, ffct.currency_code
FROM fte_freight_costs_temp ffct, wsh_freight_cost_types wfct
WHERE ffct.freight_cost_type_id = wfct.freight_cost_type_id
AND wfct.name='SUMMARY'
AND ffct.trip_id = c_trip_id
AND ffct.comparison_request_id = c_request_id
AND  nvl(lane_id,-1) = nvl(c_lane_id,-1)
AND  nvl(schedule_id, -1) = nvl(c_schedule_id,-1);
Line: 3797

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 3803

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 4001

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
          x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 4003

          FTE_FREIGHT_PRICING_UTIL.set_exception('TL_Delivery_Price_Compare',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 4159

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 4164

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 4299

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
         x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 4301

         FTE_FREIGHT_PRICING_UTIL.set_exception('TL_FREIGHT_ESTIMATE',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 4478

		l_detail_records.DELETE;
Line: 4479

		l_detail_price.DELETE;
Line: 5047

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 5053

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 5057

	l_vehicle_rows.delete;
Line: 5303

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
          x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 5305

          FTE_FREIGHT_PRICING_UTIL.set_exception('TL_OM_Rating',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 5531

			x_stop_charges_tab.delete;
Line: 5657

	Update_Pricing_Required_Flag(
		p_trip_id=>FTE_TL_CACHE.g_tl_trip_rows(p_trip_index).trip_id,
		x_return_status =>l_return_status);
Line: 5671

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 5676

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 5690

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
          x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 5692

          FTE_FREIGHT_PRICING_UTIL.set_exception('END_LCSS',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');
Line: 5732

	FTE_TL_CACHE.Delete_Cache(x_return_status=>l_return_status);
Line: 5738

		  raise FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail;
Line: 5753

    WHEN FTE_FREIGHT_PRICING_UTIL.g_tl_delete_cache_fail THEN
          x_return_status := WSH_UTIL_CORE.G_RET_STS_ERROR;
Line: 5755

          FTE_FREIGHT_PRICING_UTIL.set_exception('ABORT_LCSS',FTE_FREIGHT_PRICING_UTIL.G_ERR,'g_tl_delete_cache_fail');