DBA Data[Home] [Help]

APPS.GHR_CPDF_CHECK7 SQL Statements

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

Line: 208

          Default:  Insert asterisks in pay basis and basic pay.

  if p_effective_date > fnd_date.canonical_to_date('1998/03/01') and
     p_prior_pay_plan = 'NH' and
     p_prior_pay_rate_det_code in ('0','5','6','7') then -- added for bug 726125
     if p_prior_pay_rate_det_code in ('0','7')  then
         min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 37',
                          p_prior_grade_or_level ,
                          'Minimum Basic Pay',p_effective_date);
Line: 245

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
--upd47  26-Jun-06	Raju	   From 01-Apr-2003		             Terminate the edit
if p_effective_date < fnd_date.canonical_to_date('2003/04/01') then
	if p_prior_pay_plan = 'GS'  and
	   p_prior_pay_rate_det_code in ('2','3','4','J','K','R') then

	   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 2',
						p_prior_grade_or_level || '-' || p_prior_step_or_rate,
						'Minimum Basic Pay',
						p_prior_effective_date);
Line: 272

          Default:  Insert asterisks in pay basis and basic pay.

  if p_effective_date > fnd_date.canonical_to_date('1998/03/01') and
     p_prior_pay_plan = 'NJ' and
     p_prior_pay_rate_det_code in ('0','5','6','7') then -- added for bug 726125
     if p_prior_pay_rate_det_code in ('0','7')  then
         min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 39',
                          p_prior_grade_or_level ,
                          'Minimum Basic Pay',p_effective_date);
Line: 308

          Default:  Insert asterisks in pay basis and basic pay.

  if p_effective_date > fnd_date.canonical_to_date('1998/03/01') and
     p_prior_pay_plan = 'NK' and
     p_prior_pay_rate_det_code in ('0','5','6','7') then -- added for bug 726125
     if p_prior_pay_rate_det_code in ('0','7')  then
         min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 41',
                          p_prior_grade_or_level ,
                          'Minimum Basic Pay',p_effective_date);
Line: 345

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay. */
--           17-Aug-00   vravikan   1-Jan-2000        Modify Edit to remove step or rate
if p_effective_date >= to_date('2000/01/01','yyyy/mm/dd') then
if p_prior_pay_plan = 'GM'  and
   p_prior_pay_rate_det_code in ('0','7') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 3',
                    p_prior_grade_or_level ,
                    'Minimum Basic Pay',
                    p_prior_effective_date);
Line: 404

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
--upd47  26-Jun-06	Raju	   From 01-Apr-2006		Added pay plan GS

if p_effective_date < fnd_date.canonical_to_date('2006/04/01') then
    if p_prior_pay_plan in ('GH', 'GM') and
       p_prior_pay_rate_det_code in ('2','3','4','J','K','R')  then
       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 2',
                        p_prior_grade_or_level || '-' || p_prior_step_or_rate,
                        'Minimum Basic Pay',
                        p_prior_effective_date);
Line: 449

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
if p_prior_pay_plan = 'EX'  and
   p_prior_pay_rate_det_code = '0' then

   max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 5',
                    p_prior_grade_or_level,
                    'Maximum Basic Pay',
                    p_prior_effective_date);
Line: 473

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- NAME           EFFECTIVE      COMMENTS
-- Madhuri        21-JAN-2004    End Dating this edit as on 10-JAN-04
--				 For SES Pay Calculations
--
 -- end dating the edit as on 10-JAN-2004
IF p_effective_date < to_date('2004/01/11', 'yyyy/mm/dd') then

 if (p_prior_pay_plan in ('ES', 'FE') and
   p_prior_pay_rate_det_code <> 'C' ) then

   max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 6',
                    p_prior_step_or_rate,
                    'Maximum Basic Pay',
                    p_prior_effective_date);
Line: 535

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/

 -- Update Date   Updated By	Effective Date			Comments
 -----------------------------------------------------------------------------------------------------------
 -- 18/10/2004    Madhuri	From the start of the edit	Deleting the edit
 -----------------------------------------------------------------------------------------------------------
/*
if substr(p_prior_pay_plan,1,1) = 'W' or p_prior_pay_plan in ('XE', 'XF', 'XG', 'XH') then
   min_basic_pay := NULL;
Line: 620

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay. */
-------------------------------------------------------------------------------
-- Modified by       Date             Comments
-------------------------------------------------------------------------------
-- Madhuri          01-MAR-05         Retroactively end dating as of 31-JAN-2002
-------------------------------------------------------------------------------
IF p_prior_effective_date <= fnd_date.canonical_to_date('20'||'02/01/31') THEN
 if p_prior_pay_plan = 'KA' then
   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 17',
                    p_prior_pay_plan ,
                    'Minimum Basic Pay',
                    p_prior_effective_date);
Line: 653

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
--
-- Madhuri   19-MAY-2004    End dated the Edit as of 10-JAN-04
--
IF p_effective_date < to_date('2004/01/11', 'yyyy/mm/dd') then
 if p_prior_pay_plan in ('FB', 'FJ', 'FX') then
   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 6',
                                                 '01',
                                                 'Maximum Basic Pay',
                                                  p_prior_effective_date);
Line: 685

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'FT' then
       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 21',
                                                     p_prior_pay_plan ,
                                                     'Minimum Basic Pay',
                                                     p_prior_effective_date);
Line: 715

          Default:  Insert asterisks in prior pay basis and prior
                   basic pay.*/
 -- Update Date   Updated By	Effective Date			Comments
 -----------------------------------------------------------------------------------------------------------
 -- 18/10/2004    Madhuri	From the start of the edit	Deleting the edit
 -----------------------------------------------------------------------------------------------------------

/*if p_prior_pay_plan in ('FL', 'FS', 'FW') then
   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 11',
                    'WG'||'-'||p_prior_grade_or_level,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 747

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
--           17-Aug-00    vravikan   1-Jan-2000       Modify Edit to remove prior step or rate
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_effective_date >= to_date('2000/01/01','yyyy/mm/dd') then
    if p_prior_pay_plan = 'FM' and
       p_prior_pay_rate_det_code in ('0','7') then

       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 3',
                        p_prior_grade_or_level ,
                        'Minimum Basic Pay',p_prior_effective_date);
Line: 799

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.
if p_prior_pay_plan = 'DR' and
   p_prior_pay_rate_det_code in ('0','7') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 28',
                    p_prior_grade_or_level ,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 829

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.
if p_prior_pay_plan = 'DR' and
   p_prior_pay_rate_det_code in ('5','6') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 29',
                    p_prior_grade_or_level ,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 855

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'NY' then
       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 26',
                        p_prior_grade_or_level ,
                       'Minimum Basic Pay',p_prior_effective_date);
Line: 880

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'NX' then

       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 27',
                        p_prior_grade_or_level ,
                        'Minimum Basic Pay',p_prior_effective_date);
Line: 909

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay. */
-- Update    Date         By       		Comments
-- 20/2    27-Feb-2003   Madhuri   	Modified the Requirement
--            			From	Then Prior Basic Pay must match the entry for the grade on Table 8 or be asterisks.
--           			to	Then Prior Basic Pay must be within the range for prior grade on Table 8 or be asterisks.
--
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'FC' and
       p_prior_pay_rate_det_code <> 'C' then

       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 8',
                        p_prior_grade_or_level || '-' || p_prior_step_or_rate,
                        'Minimum Basic Pay',p_prior_effective_date);
Line: 943

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
if p_prior_pay_plan in ('AF','FO','FP') and
   p_prior_pay_rate_det_code <> 'C' then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 10',
                    p_prior_grade_or_level || '-' || p_prior_step_or_rate,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 1008

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
/*   Commenting the edit as per the Bug 3147737.
if p_prior_pay_plan = 'GS'  and
   p_prior_pay_rate_det_code in ('5','6','M')  then

   max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 19',
                                                 p_prior_grade_or_level,
                                                 'Maximum Basic Pay',
                                                 p_prior_effective_date);
Line: 1207

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
/* Commented as per the bug 3147737

if p_prior_pay_plan = 'GM' and
   p_prior_pay_rate_det_code in ('5', '6', 'M') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 20',
                    p_prior_grade_or_level,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 1237

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.
          Basis for Edit:  5 U.S.C. 5372 */

if p_prior_pay_plan = 'AL' and
   p_prior_pay_rate_det_code <> 'C'  then

  if p_prior_grade_or_level in ('01', '02') then
     max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 22',
                      p_prior_grade_or_level,
                      'Minimum Basic Pay',
                      p_prior_effective_date);
Line: 1271

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.

          Basis for Edit:  5 U.S.C. 5372a*/
if p_prior_pay_plan = 'CA' and
   p_prior_pay_rate_det_code <> 'C' then

   max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 23',
                    p_prior_grade_or_level,
                   'Minimum Basic Pay',p_prior_effective_date);
Line: 1297

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.
          Basis for Edit:  5 U.S.C. 5376*/

-- Upd57  30-Jul-09       Mani       Bug # 8653515 Added PRD D in the condition

IF p_effective_date >=  to_date('2008/10/14','RRRR/MM/DD') then --Bug#8653515
  if p_prior_pay_plan in ('ST', 'SL') and
   p_prior_pay_rate_det_code NOT IN ('C','D') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 21',
                    p_prior_pay_plan ,
                    'Minimum Basic Pay',p_prior_effective_date);
Line: 1356

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.

-- added extra if for bug 726125
if p_prior_pay_plan = 'ND' and
   p_prior_pay_rate_det_code in ('0','5','6','7') then
   if p_prior_pay_rate_det_code in ('0','7') then
      min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 30',
                                                    p_prior_grade_or_level ,
                                                   'Minimum Basic Pay',
                                                    p_prior_effective_date);
Line: 1401

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.

-- added extra if for bug 726125
if p_prior_pay_plan = 'NG' and
   p_prior_pay_rate_det_code in ('0','5','6','7') then
   if p_prior_pay_rate_det_code in ('0','7') then
      min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 32',
                                                     p_prior_grade_or_level ,
                                                    'Minimum Basic Pay',
                                                     p_prior_effective_date);
Line: 1446

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.

if p_prior_pay_plan = 'NT' and
   p_prior_pay_rate_det_code in ('0','5','6','7') then -- added for bug 726125
   if p_prior_pay_rate_det_code in ('0','7') then
      min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 34',
                       p_prior_grade_or_level ,'Minimum Basic Pay',p_prior_effective_date);
Line: 1481

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.
if p_prior_pay_plan = 'TP' and
   p_prior_pay_basis = 'SY'  then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 24',
                                                 p_prior_pay_plan ,
                                                 'Minimum Basic Pay',
                                                 p_prior_effective_date);
Line: 1511

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
if p_prior_pay_plan = 'CG' and
   p_prior_pay_rate_det_code = '0' and
   p_prior_grade_or_level = 'SL'  then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 21',
                                                 p_prior_pay_plan ,
                                                 'Minimum Basic Pay',
                                                 p_prior_effective_date);
Line: 1541

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'IJ' and
       p_prior_pay_rate_det_code in ('0','7') then

       max_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 36',
                                                     p_prior_step_or_rate ,
                                                     'Maximum Basic Pay',
                                                     p_prior_effective_date);
Line: 1569

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- Bug# 9255822 added PRD Y

if p_prior_pay_plan = 'CG'  and
   p_prior_grade_or_level between '01' and '15'  and
   p_prior_pay_rate_det_code in ('2','3','4','J','K','R','Y') then

   min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 2',
                                                  p_prior_grade_or_level||'-'||p_prior_step_or_rate ,
                                                  'Minimum Basic Pay',
                                                  p_prior_effective_date);
Line: 1596

          Default:  Insert asterisks in prior pay basis and prior
                    basic pay.*/
-- UPD 56 (Bug# 8309414) Terminating the edit eff date 13-Aug-2007
if p_effective_date < fnd_date.canonical_to_date('2007/08/14') then
    if p_prior_pay_plan = 'GH' and
       p_prior_pay_rate_det_code in ('0','7')  then

       min_basic_pay := GHR_CPDF_CHECK.get_basic_pay('CPDF Oracle Federal Table 3',
                                                     p_prior_grade_or_level||'-'||p_prior_step_or_rate ,
                                                     'Minimum Basic Pay',
                                                     p_prior_effective_date);
Line: 1664

         SELECT effective_start_date, effective_end_date,
                NVL(adjustment_percentage,0),
                NVL(leo_adjustment_percentage,0)
	   FROM   ghr_locality_pay_areas_f
	   WHERE  locality_pay_area_code = p_locality_pay_area
           AND  trunc(l_effective_date) between effective_start_date
                                            and nvl(effective_end_date, l_effective_date);
Line: 1957

          Default:  Insert asterisks in locality adjustment. */

   --  'p_as_of_date' has been determined to be effective_date.
   --  Adds pay rate determinants E and F effective 01-mar-1998
-------------------------------------------------------------------------------
--- Modified by    Date          Comments
-------------------------------------------------------------------------------
--- Madhuri       01-MAR-05      Change the condition 'And locality pay area is 02 through 88'
---			  	To:'And locality pay area is other than ZY or ZZ' as of 09-JAN-2005
--  Raju		  31/1/06		 Commented the code effective from 01-May-2005
-- upd50  06-Feb-07	  Raju       From 01-Oct-2006	    Bug#5745356
-- upd50  27-Nov-11	  Raju       From 01-Oct-2006	    Bug# 13257133 Modified to Greater than
-- earlier wrongly coded as less then with bug 5745356
-------------------------------------------------------------------------------
IF  p_effective_date < fnd_date.canonical_to_date('1998/03/01')  then
      if (
	   p_to_pay_plan in ('GS','GM','GG','GH') and
         p_pay_rate_determinant_code in ('6','5','M') and
         p_locality_pay_area between '02' and '88' and
         (p_to_locality_adj is not null or to_number(p_to_locality_adj) <> 0) and
         (p_to_basic_pay is not null or to_number(p_to_basic_pay) <> 0)
          ) then
         if (
              l_lpa_pct < round((to_number(p_to_locality_adj)/to_number(p_to_basic_pay)*100),2) and
              l_leo_pct < round((to_number(p_to_locality_adj)/to_number(p_to_basic_pay)*100),2)
            ) then
            GHR_GHRWS52L.CPDF_Parameter_Check;
Line: 2066

          Default:  Insert asterisks in locality adjustment.

          Basis for Edit:  5 U.S.C. 5304
         'p_as_of_date' has been determined to be effective date. */
-------------------------------------------------------------------------------
--- Modified by    Date          Comments
-------------------------------------------------------------------------------
--- Madhuri       01-MAR-05      Change the condition 'And locality pay area is 02 through 88'
---			  	To:'And locality pay area is other than ZY or ZZ' as of 09-JAN-05
--  utokachi      10/21/05       Validate for actions after 01-MAY-2005
--  Raju		  31/1/06		 Commented the code effective from 01-May-2005
-------------------------------------------------------------------------------
IF ( p_effective_date < to_date('09/01/2005', 'dd/mm/yyyy') ) THEN
	if (
	p_to_pay_plan in ('GS','GM','GG','GH','FO','FP') and
	p_pay_rate_determinant_code in ('6','5','M') and
        p_locality_pay_area between '02' and '88' and
      (p_to_locality_adj is not null or to_number(p_to_locality_adj) <> 0) and
	(p_to_basic_pay is not null or to_number(p_to_basic_pay) <> 0)
     ) then
	if (
          l_lpa_pct < round((to_number(p_to_locality_adj)/to_number(p_to_basic_pay)*100),2) and
          l_leo_pct < round((to_number(p_to_locality_adj)/to_number(p_to_basic_pay)*100),2)
	   ) then
         GHR_GHRWS52L.CPDF_Parameter_Check;
Line: 2609

         SELECT effective_start_date,         effective_end_date,
                NVL(adjustment_percentage,0), NVL(leo_adjustment_percentage,0)
	   FROM   ghr_locality_pay_areas_f
	   WHERE  locality_pay_area_code = p_prior_locality_pay_area
           AND  p_prior_loc_adj_effective_date BETWEEN effective_start_date and effective_end_date;
Line: 2636

          Default:  Insert asterisks in prior locality
                    adjustment.

          Basis for Edit:  5 U.S.C. 5304 */
/*
  --
  --   Commented the edit for bug 557188 on 7-aug-98
  --
  if (
	nvl(p_prior_pay_plan,hr_api.g_varchar2) in ('GS','GM','GG','GH','FO','FP','FE','ES','ST','AL','CA','SL')
     ) then

	if (p_prior_basic_pay is not null or to_number(p_prior_basic_pay) <> 0) then
         if (
             l_lpa_pct  < round((nvl(to_number(p_prior_locality_adj),0)/to_number(p_prior_basic_pay))*100,2) and
             l_leo_pct  < round((nvl(to_number(p_prior_locality_adj),0)/to_number(p_prior_basic_pay))*100,2)
		) then
       GHR_GHRWS52L.CPDF_Parameter_Check;
Line: 2670

          Default:  Insert asterisks in prior locality
                    adjustment.

          Basis for Edit:  5 U.S.C. 5304 */
-------------------------------------------------------------------------------
--- Modified by    Date          Comments
-------------------------------------------------------------------------------
--- Madhuri       01-MAR-05     FROM:'And prior locality pay area is 02 through 88'
---				To: 'And prior locality pay area is other than ZY or ZZ' as of 09-Jan-05
--  Raju    	  08-Nov-2005	 UPD 42(Bug 4567571) Delete prior PRD 3,J and K as of 01-May-2005
--  amrchakr      05-Oct-2006   Removed prior locality pay area 'ZY' effective from 01-jul-2006
-- UPD 56  8309414       Raju       From 13-Aug-07
--   U58     Raju       01-jan-2010      Bug 9503972
-------------------------------------------------------------------------------
IF ( p_effective_date < to_date('09/01/2005', 'dd/mm/yyyy') ) THEN
    if (
	nvl(p_prior_pay_plan,hr_api.g_varchar2) in ('GS','GM','GG','GH','FO','FP') and
	nvl(p_prior_pay_rate_det_code,hr_api.g_varchar2) in ('0','3','7','J','K') and
        nvl(p_locality_pay_area,hr_api.g_varchar2)  between '02' and '88' and
        (p_prior_locality_adj is not null or to_number(p_prior_locality_adj) <> 0) and
        (p_prior_basic_pay is not null or p_prior_basic_pay <> 0)
       ) then
     	 if (
	    l_lpa_pct < round((to_number(p_prior_locality_adj)/to_number(p_prior_basic_pay)*100),2) and
 	    l_leo_pct < round((to_number(p_prior_locality_adj)/to_number(p_prior_basic_pay)*100),2)
	    ) then
            GHR_GHRWS52L.CPDF_Parameter_Check;