505: (p_start_date between budget_start_date and budget_end_date) or
506: (p_end_date between budget_start_date and budget_end_date)
507: )
508: and (
509: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
510: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
511: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
512: );
513: --
506: (p_end_date between budget_start_date and budget_end_date)
507: )
508: and (
509: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
510: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
511: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
512: );
513: --
514: calc_start_date date;
507: )
508: and (
509: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
510: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
511: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
512: );
513: --
514: calc_start_date date;
515: calc_end_date date;
563: (p_start_date between budget_start_date and budget_end_date) or
564: (p_end_date between budget_start_date and budget_end_date)
565: )
566: and (
567: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
568: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
569: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
570: );
571: --
564: (p_end_date between budget_start_date and budget_end_date)
565: )
566: and (
567: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
568: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
569: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
570: );
571: --
572: calc_start_date date;
565: )
566: and (
567: hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
568: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
569: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
570: );
571: --
572: calc_start_date date;
573: calc_end_date date;
3695: or
3696: (p_start_date between bud.budget_start_date and bud.budget_end_date) or
3697: (p_end_date between bud.budget_start_date and bud.budget_end_date)
3698: )
3699: and ( hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
3700: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
3701: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
3702: )
3703: and bud.budget_id = bver.budget_id
3696: (p_start_date between bud.budget_start_date and bud.budget_end_date) or
3697: (p_end_date between bud.budget_start_date and bud.budget_end_date)
3698: )
3699: and ( hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
3700: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
3701: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
3702: )
3703: and bud.budget_id = bver.budget_id
3704: and trunc(p_effective_date) between trunc(bver.date_from) and trunc(bver.date_to)
3697: (p_end_date between bud.budget_start_date and bud.budget_end_date)
3698: )
3699: and ( hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit1_id) = 'MONEY'
3700: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit2_id) = 'MONEY'
3701: or hr_psf_shd.SYSTEM_AVAILABILITY_STATUS(budget_unit3_id) = 'MONEY'
3702: )
3703: and bud.budget_id = bver.budget_id
3704: and trunc(p_effective_date) between trunc(bver.date_from) and trunc(bver.date_to)
3705: and nvl(p_organization_id, nvl(bdet.organization_id, -1)) =