189: -- since the Archive/Restore process drives it from there.
190: -- Removed all unwanted logging, and comments.
191:
192:
193: hr_general.g_data_migrator_mode := 'Y';
194:
195: l_fnd_logging := nvl(fnd_profile.value('AFLOG_ENABLED'),'N');
196: l_chunk_size := nvl(fnd_profile.value('HXC_ARCHIVE_RESTORE_CHUNK_SIZE'),50);
197:
461: l_fnd_logging VARCHAR2(10);
462:
463: BEGIN
464:
465: hr_general.g_data_migrator_mode := 'Y';
466:
467: l_fnd_logging := nvl(fnd_profile.value('AFLOG_ENABLED'),'N');
468: l_chunk_size := nvl(fnd_profile.value('HXC_ARCHIVE_RESTORE_CHUNK_SIZE'),25);
469:
512: --Cursor to fetch all the non-errord status unreterived Timecards.
513:
514:
515: -- Bug 6744917
516: -- Added condition to compare det.date_to to hr_general.end_of_time.
517: -- The query just pulled out all timecards which has details without
518: -- transaction details of type RETRIEVAL.
519: -- For a detail which is overwritten or deleted and where the original
520: -- entry was never retrieved, there neednt be retrieval happening
571: AND hld.time_building_block_id = det.time_building_block_id
572: AND hld.object_version_number = det.object_version_number
573: AND det.parent_building_block_id = day.time_building_block_id
574: AND det.parent_building_block_ovn = day.object_version_number
575: AND ( ( det.date_to = hr_general.end_of_time
576: )
577: OR ( det.date_to <> hr_general.end_of_time
578: AND EXISTS (SELECT 1
579: FROM hxc_transaction_details txnd1,
573: AND det.parent_building_block_id = day.time_building_block_id
574: AND det.parent_building_block_ovn = day.object_version_number
575: AND ( ( det.date_to = hr_general.end_of_time
576: )
577: OR ( det.date_to <> hr_general.end_of_time
578: AND EXISTS (SELECT 1
579: FROM hxc_transaction_details txnd1,
580: hxc_transactions txn1,
581: hxc_retrieval_processes rp1