4823: where business_group_id = p_business_group_id;
4824:
4825: select decode(p_mode, 'L', 'Listing Mode', 'A','All','U','Upgrading Mode','Future Upgrade') into l_run_mode from dual;
4826:
4827: FND_FILE.PUT_LINE(FND_FILE.LOG,'Business Group Name : '|| l_business_group_name);
4828: FND_FILE.PUT_LINE(FND_FILE.LOG,'Running Mode : '|| l_run_mode);
4829: FND_FILE.NEW_LINE(FND_FILE.LOG);
4830: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4831: FND_FILE.NEW_LINE(FND_FILE.LOG);
4824:
4825: select decode(p_mode, 'L', 'Listing Mode', 'A','All','U','Upgrading Mode','Future Upgrade') into l_run_mode from dual;
4826:
4827: FND_FILE.PUT_LINE(FND_FILE.LOG,'Business Group Name : '|| l_business_group_name);
4828: FND_FILE.PUT_LINE(FND_FILE.LOG,'Running Mode : '|| l_run_mode);
4829: FND_FILE.NEW_LINE(FND_FILE.LOG);
4830: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4831: FND_FILE.NEW_LINE(FND_FILE.LOG);
4832:
4825: select decode(p_mode, 'L', 'Listing Mode', 'A','All','U','Upgrading Mode','Future Upgrade') into l_run_mode from dual;
4826:
4827: FND_FILE.PUT_LINE(FND_FILE.LOG,'Business Group Name : '|| l_business_group_name);
4828: FND_FILE.PUT_LINE(FND_FILE.LOG,'Running Mode : '|| l_run_mode);
4829: FND_FILE.NEW_LINE(FND_FILE.LOG);
4830: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4831: FND_FILE.NEW_LINE(FND_FILE.LOG);
4832:
4833: OPEN csr_paye_tax_element;
4826:
4827: FND_FILE.PUT_LINE(FND_FILE.LOG,'Business Group Name : '|| l_business_group_name);
4828: FND_FILE.PUT_LINE(FND_FILE.LOG,'Running Mode : '|| l_run_mode);
4829: FND_FILE.NEW_LINE(FND_FILE.LOG);
4830: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4831: FND_FILE.NEW_LINE(FND_FILE.LOG);
4832:
4833: OPEN csr_paye_tax_element;
4834: FETCH csr_paye_tax_element into l_element_type_id;
4827: FND_FILE.PUT_LINE(FND_FILE.LOG,'Business Group Name : '|| l_business_group_name);
4828: FND_FILE.PUT_LINE(FND_FILE.LOG,'Running Mode : '|| l_run_mode);
4829: FND_FILE.NEW_LINE(FND_FILE.LOG);
4830: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4831: FND_FILE.NEW_LINE(FND_FILE.LOG);
4832:
4833: OPEN csr_paye_tax_element;
4834: FETCH csr_paye_tax_element into l_element_type_id;
4835: CLOSE csr_paye_tax_element;
4885:
4886:
4887: IF l_run_mode = 'Listing Mode' THEN
4888:
4889: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2' );
4890: fnd_file.put_line(FND_FILE.LOG,'since they have open ended element entry for Tax Information element as of 01-JUL-2012' );
4891: fnd_file.put_line(FND_FILE.LOG,'and open ended assignment entry record as of 01-JUL-2012' );
4892: FND_FILE.NEW_LINE(FND_FILE.LOG);
4893:
4886:
4887: IF l_run_mode = 'Listing Mode' THEN
4888:
4889: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2' );
4890: fnd_file.put_line(FND_FILE.LOG,'since they have open ended element entry for Tax Information element as of 01-JUL-2012' );
4891: fnd_file.put_line(FND_FILE.LOG,'and open ended assignment entry record as of 01-JUL-2012' );
4892: FND_FILE.NEW_LINE(FND_FILE.LOG);
4893:
4894: FOR asgrec IN csr_ele_entries(l_element_type_id,l_inp_value_id_table(13))
4887: IF l_run_mode = 'Listing Mode' THEN
4888:
4889: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2' );
4890: fnd_file.put_line(FND_FILE.LOG,'since they have open ended element entry for Tax Information element as of 01-JUL-2012' );
4891: fnd_file.put_line(FND_FILE.LOG,'and open ended assignment entry record as of 01-JUL-2012' );
4892: FND_FILE.NEW_LINE(FND_FILE.LOG);
4893:
4894: FOR asgrec IN csr_ele_entries(l_element_type_id,l_inp_value_id_table(13))
4895: LOOP
4888:
4889: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2' );
4890: fnd_file.put_line(FND_FILE.LOG,'since they have open ended element entry for Tax Information element as of 01-JUL-2012' );
4891: fnd_file.put_line(FND_FILE.LOG,'and open ended assignment entry record as of 01-JUL-2012' );
4892: FND_FILE.NEW_LINE(FND_FILE.LOG);
4893:
4894: FOR asgrec IN csr_ele_entries(l_element_type_id,l_inp_value_id_table(13))
4895: LOOP
4896:
4912: FETCH get_emp_details INTO l_full_name , l_emp_num;
4913: CLOSE get_emp_details;
4914:
4915: IF l_full_name is not null and l_emp_num is not null and l_business_group_id = p_business_group_id THEN
4916: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ')' );
4917: l_count := l_count + 1;
4918: END IF;
4919:
4920: END IF;
4917: l_count := l_count + 1;
4918: END IF;
4919:
4920: END IF;
4921: -- FND_FILE.NEW_LINE(FND_FILE.LOG);
4922:
4923: END LOOP;
4924:
4925: IF l_count = 0 THEN
4922:
4923: END LOOP;
4924:
4925: IF l_count = 0 THEN
4926: FND_FILE.NEW_LINE(FND_FILE.LOG);
4927: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
4928: END IF;
4929:
4930: IF l_count > 0 THEN
4923: END LOOP;
4924:
4925: IF l_count = 0 THEN
4926: FND_FILE.NEW_LINE(FND_FILE.LOG);
4927: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
4928: END IF;
4929:
4930: IF l_count > 0 THEN
4931: FND_FILE.NEW_LINE(FND_FILE.LOG);
4927: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
4928: END IF;
4929:
4930: IF l_count > 0 THEN
4931: FND_FILE.NEW_LINE(FND_FILE.LOG);
4932: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees eligible for upgrade = '||l_count);
4933: END IF;
4934:
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4928: END IF;
4929:
4930: IF l_count > 0 THEN
4931: FND_FILE.NEW_LINE(FND_FILE.LOG);
4932: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees eligible for upgrade = '||l_count);
4933: END IF;
4934:
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4931: FND_FILE.NEW_LINE(FND_FILE.LOG);
4932: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees eligible for upgrade = '||l_count);
4933: END IF;
4934:
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4932: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees eligible for upgrade = '||l_count);
4933: END IF;
4934:
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4933: END IF;
4934:
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4935: FND_FILE.NEW_LINE(FND_FILE.LOG);
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4936: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4937: FND_FILE.NEW_LINE(FND_FILE.LOG);
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4938:
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4946: FND_FILE.NEW_LINE(FND_FILE.LOG);
4939: fnd_file.put_line(FND_FILE.LOG,'Listing of Employees with current tax scale = 7 and eligible for upgrade to tax scale = 2');
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4946: FND_FILE.NEW_LINE(FND_FILE.LOG);
4947:
4940: fnd_file.put_line(FND_FILE.LOG,'but having future-dated/end-dated element entries for Tax Information element and (or) having future-dated/end-dated assignment changes post 01-JUL-2012' );
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4946: FND_FILE.NEW_LINE(FND_FILE.LOG);
4947:
4948: l_count := 0;
4941: fnd_file.put_line(FND_FILE.LOG,'Please delete the future-dated/end-dated element entries and (or) future-dated/end-dated assignment changes before running program in UPGRADE mode');
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4946: FND_FILE.NEW_LINE(FND_FILE.LOG);
4947:
4948: l_count := 0;
4949:
4942: fnd_file.put_line(FND_FILE.LOG,'OR');
4943: fnd_file.put_line(FND_FILE.LOG,'Modify the tax scale of these employees manually from 7 to 2 effective 01-JUL-2012');
4944: fnd_file.put_line(FND_FILE.LOG,'Manually Changing the Assignments Leave Loading Flag from "No" to "Yes" effective 01-JUL-2012 ');
4945: fnd_file.put_line(FND_FILE.LOG,'changes the existing Tax Scale of these employees from 7 to 2');
4946: FND_FILE.NEW_LINE(FND_FILE.LOG);
4947:
4948: l_count := 0;
4949:
4950: FOR asgrec IN csr_fut_ele_entries(l_element_type_id,l_inp_value_id_table(13))
4961: OPEN get_emp_details(asgrec.assignment_id) ;
4962: FETCH get_emp_details INTO l_full_name,l_emp_num;
4963: CLOSE get_emp_details;
4964:
4965: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated element entries' );
4966: FND_FILE.NEW_LINE(FND_FILE.LOG);
4967:
4968: OPEN csr_fut_asg_rec(asgrec.assignment_id);
4969: FETCH csr_fut_asg_rec INTO l_asg_exist;
4962: FETCH get_emp_details INTO l_full_name,l_emp_num;
4963: CLOSE get_emp_details;
4964:
4965: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated element entries' );
4966: FND_FILE.NEW_LINE(FND_FILE.LOG);
4967:
4968: OPEN csr_fut_asg_rec(asgrec.assignment_id);
4969: FETCH csr_fut_asg_rec INTO l_asg_exist;
4970: CLOSE csr_fut_asg_rec;
4969: FETCH csr_fut_asg_rec INTO l_asg_exist;
4970: CLOSE csr_fut_asg_rec;
4971:
4972: IF l_asg_exist > 0 THEN
4973: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated assignment records' );
4974: FND_FILE.NEW_LINE(FND_FILE.LOG);
4975: END IF;
4976:
4977: -- FND_FILE.NEW_LINE(FND_FILE.LOG);
4970: CLOSE csr_fut_asg_rec;
4971:
4972: IF l_asg_exist > 0 THEN
4973: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated assignment records' );
4974: FND_FILE.NEW_LINE(FND_FILE.LOG);
4975: END IF;
4976:
4977: -- FND_FILE.NEW_LINE(FND_FILE.LOG);
4978: l_count := l_count + 1;
4973: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated assignment records' );
4974: FND_FILE.NEW_LINE(FND_FILE.LOG);
4975: END IF;
4976:
4977: -- FND_FILE.NEW_LINE(FND_FILE.LOG);
4978: l_count := l_count + 1;
4979: END IF;
4980: END LOOP;
4981:
4978: l_count := l_count + 1;
4979: END IF;
4980: END LOOP;
4981:
4982: FND_FILE.NEW_LINE(FND_FILE.LOG);
4983:
4984: FOR asgrec IN csr_ele_entries(l_element_type_id,l_inp_value_id_table(13))
4985: LOOP
4986:
5003:
5004: IF l_business_group_id = p_business_group_id THEN
5005: IF l_asg_exist > 0 THEN
5006:
5007: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated assignment records' );
5008: FND_FILE.NEW_LINE(FND_FILE.LOG);
5009: l_count := l_count + 1;
5010:
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5004: IF l_business_group_id = p_business_group_id THEN
5005: IF l_asg_exist > 0 THEN
5006:
5007: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') has future-dated/end-dated assignment records' );
5008: FND_FILE.NEW_LINE(FND_FILE.LOG);
5009: l_count := l_count + 1;
5010:
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5012: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') does not have any assignment record, but has some element entries attached to assignment');
5008: FND_FILE.NEW_LINE(FND_FILE.LOG);
5009: l_count := l_count + 1;
5010:
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5012: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') does not have any assignment record, but has some element entries attached to assignment');
5013: fnd_file.put_line(FND_FILE.LOG,'Please check the data setup for the assignment on Assignment Form and insert the assignment details appropriately' );
5014: fnd_file.put_line(FND_FILE.LOG,'This could probably be a case of data corruption' );
5015: FND_FILE.NEW_LINE(FND_FILE.LOG);
5016: l_count := l_count + 1;
5009: l_count := l_count + 1;
5010:
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5012: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') does not have any assignment record, but has some element entries attached to assignment');
5013: fnd_file.put_line(FND_FILE.LOG,'Please check the data setup for the assignment on Assignment Form and insert the assignment details appropriately' );
5014: fnd_file.put_line(FND_FILE.LOG,'This could probably be a case of data corruption' );
5015: FND_FILE.NEW_LINE(FND_FILE.LOG);
5016: l_count := l_count + 1;
5017:
5010:
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5012: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') does not have any assignment record, but has some element entries attached to assignment');
5013: fnd_file.put_line(FND_FILE.LOG,'Please check the data setup for the assignment on Assignment Form and insert the assignment details appropriately' );
5014: fnd_file.put_line(FND_FILE.LOG,'This could probably be a case of data corruption' );
5015: FND_FILE.NEW_LINE(FND_FILE.LOG);
5016: l_count := l_count + 1;
5017:
5018: END IF;
5011: ELSIF l_full_name is null and l_emp_num is null THEN
5012: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ') does not have any assignment record, but has some element entries attached to assignment');
5013: fnd_file.put_line(FND_FILE.LOG,'Please check the data setup for the assignment on Assignment Form and insert the assignment details appropriately' );
5014: fnd_file.put_line(FND_FILE.LOG,'This could probably be a case of data corruption' );
5015: FND_FILE.NEW_LINE(FND_FILE.LOG);
5016: l_count := l_count + 1;
5017:
5018: END IF;
5019: END IF;
5022:
5023: END LOOP;
5024:
5025: IF l_count = 0 THEN
5026: FND_FILE.NEW_LINE(FND_FILE.LOG);
5027: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
5028: END IF;
5029:
5030: IF l_count > 0 THEN
5023: END LOOP;
5024:
5025: IF l_count = 0 THEN
5026: FND_FILE.NEW_LINE(FND_FILE.LOG);
5027: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
5028: END IF;
5029:
5030: IF l_count > 0 THEN
5031: FND_FILE.NEW_LINE(FND_FILE.LOG);
5027: fnd_file.put_line(FND_FILE.LOG,'No Employees exist under this category' );
5028: END IF;
5029:
5030: IF l_count > 0 THEN
5031: FND_FILE.NEW_LINE(FND_FILE.LOG);
5032: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees ineligible for upgrade = '||l_count);
5033: END IF;
5034:
5035: FND_FILE.NEW_LINE(FND_FILE.LOG);
5028: END IF;
5029:
5030: IF l_count > 0 THEN
5031: FND_FILE.NEW_LINE(FND_FILE.LOG);
5032: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees ineligible for upgrade = '||l_count);
5033: END IF;
5034:
5035: FND_FILE.NEW_LINE(FND_FILE.LOG);
5036: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5031: FND_FILE.NEW_LINE(FND_FILE.LOG);
5032: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees ineligible for upgrade = '||l_count);
5033: END IF;
5034:
5035: FND_FILE.NEW_LINE(FND_FILE.LOG);
5036: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5037: FND_FILE.NEW_LINE(FND_FILE.LOG);
5038:
5039: ELSIF l_run_mode = 'All' THEN
5032: fnd_file.put_line(FND_FILE.LOG,'Total Number of Employees ineligible for upgrade = '||l_count);
5033: END IF;
5034:
5035: FND_FILE.NEW_LINE(FND_FILE.LOG);
5036: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5037: FND_FILE.NEW_LINE(FND_FILE.LOG);
5038:
5039: ELSIF l_run_mode = 'All' THEN
5040:
5033: END IF;
5034:
5035: FND_FILE.NEW_LINE(FND_FILE.LOG);
5036: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5037: FND_FILE.NEW_LINE(FND_FILE.LOG);
5038:
5039: ELSIF l_run_mode = 'All' THEN
5040:
5041: fnd_file.put_line(FND_FILE.LOG,'Listing of all upgraded employees with tax scale = 2 as of 01-JUL-2012' );
5037: FND_FILE.NEW_LINE(FND_FILE.LOG);
5038:
5039: ELSIF l_run_mode = 'All' THEN
5040:
5041: fnd_file.put_line(FND_FILE.LOG,'Listing of all upgraded employees with tax scale = 2 as of 01-JUL-2012' );
5042: FND_FILE.NEW_LINE(FND_FILE.LOG);
5043:
5044: l_count := 0;
5045: FOR csritr IN csr_asg_curr_scale(l_element_type_id,l_inp_value_id_table(13))
5038:
5039: ELSIF l_run_mode = 'All' THEN
5040:
5041: fnd_file.put_line(FND_FILE.LOG,'Listing of all upgraded employees with tax scale = 2 as of 01-JUL-2012' );
5042: FND_FILE.NEW_LINE(FND_FILE.LOG);
5043:
5044: l_count := 0;
5045: FOR csritr IN csr_asg_curr_scale(l_element_type_id,l_inp_value_id_table(13))
5046: LOOP
5055: FETCH get_bg_id INTO l_business_group_id;
5056: CLOSE get_bg_id;
5057:
5058: IF l_business_group_id = p_business_group_id THEN
5059: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||csritr.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num || ')' );
5060: l_count := l_count + 1;
5061: END IF;
5062:
5063: END LOOP;
5062:
5063: END LOOP;
5064:
5065: IF l_count > 0 THEN
5066: FND_FILE.NEW_LINE(FND_FILE.LOG);
5067: fnd_file.put_line(FND_FILE.LOG,'Total Number of upgraded Employees with tax scale = 2 are '||l_count);
5068: END IF;
5069:
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5063: END LOOP;
5064:
5065: IF l_count > 0 THEN
5066: FND_FILE.NEW_LINE(FND_FILE.LOG);
5067: fnd_file.put_line(FND_FILE.LOG,'Total Number of upgraded Employees with tax scale = 2 are '||l_count);
5068: END IF;
5069:
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5066: FND_FILE.NEW_LINE(FND_FILE.LOG);
5067: fnd_file.put_line(FND_FILE.LOG,'Total Number of upgraded Employees with tax scale = 2 are '||l_count);
5068: END IF;
5069:
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5067: fnd_file.put_line(FND_FILE.LOG,'Total Number of upgraded Employees with tax scale = 2 are '||l_count);
5068: END IF;
5069:
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5068: END IF;
5069:
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5070: FND_FILE.NEW_LINE(FND_FILE.LOG);
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5071: FND_FILE.PUT_LINE(FND_FILE.LOG,'-------------------------------------------------------------------------');
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5079: FND_FILE.NEW_LINE(FND_FILE.LOG);
5072: FND_FILE.NEW_LINE(FND_FILE.LOG);
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5079: FND_FILE.NEW_LINE(FND_FILE.LOG);
5080:
5073: ELSIF l_run_mode = 'Upgrading Mode' THEN
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5079: FND_FILE.NEW_LINE(FND_FILE.LOG);
5080:
5081: l_count := 0;
5074: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Employee from 7 to 2 ' );
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5079: FND_FILE.NEW_LINE(FND_FILE.LOG);
5080:
5081: l_count := 0;
5082:
5075: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5076: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5077: fnd_file.put_line(FND_FILE.LOG,'UPGRADE is only done for those employees having open ended element entry for Tax Information element as of 01-JUL-2012' );
5078: fnd_file.put_line(FND_FILE.LOG,'and having open ended assignment entry record as of 01-JUL-2012');
5079: FND_FILE.NEW_LINE(FND_FILE.LOG);
5080:
5081: l_count := 0;
5082:
5083: FOR asgrec IN csr_ele_entries(l_element_type_id,l_inp_value_id_table(13))
5228: );
5229:
5230: COMMIT;
5231:
5232: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') succesfully upgraded from Tax Scale 7 to 2' );
5233: FND_FILE.NEW_LINE(FND_FILE.LOG);
5234:
5235: l_count := l_count + 1;
5236:
5229:
5230: COMMIT;
5231:
5232: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') succesfully upgraded from Tax Scale 7 to 2' );
5233: FND_FILE.NEW_LINE(FND_FILE.LOG);
5234:
5235: l_count := l_count + 1;
5236:
5237: ELSE
5234:
5235: l_count := l_count + 1;
5236:
5237: ELSE
5238: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5239: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid legal employer as of 01-JUL-2012' );
5240: FND_FILE.NEW_LINE(FND_FILE.LOG);
5241: END IF;
5242: ELSE
5235: l_count := l_count + 1;
5236:
5237: ELSE
5238: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5239: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid legal employer as of 01-JUL-2012' );
5240: FND_FILE.NEW_LINE(FND_FILE.LOG);
5241: END IF;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5236:
5237: ELSE
5238: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5239: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid legal employer as of 01-JUL-2012' );
5240: FND_FILE.NEW_LINE(FND_FILE.LOG);
5241: END IF;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5244: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid SCL Information for Assignment as of 01-JUL-2012' );
5239: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid legal employer as of 01-JUL-2012' );
5240: FND_FILE.NEW_LINE(FND_FILE.LOG);
5241: END IF;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5244: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid SCL Information for Assignment as of 01-JUL-2012' );
5245: fnd_file.put_line(FND_FILE.LOG,'Please correct assignment SCL Information and then rerun the upgrade process for this assignment' );
5246: FND_FILE.NEW_LINE(FND_FILE.LOG);
5247: END IF;
5240: FND_FILE.NEW_LINE(FND_FILE.LOG);
5241: END IF;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5244: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid SCL Information for Assignment as of 01-JUL-2012' );
5245: fnd_file.put_line(FND_FILE.LOG,'Please correct assignment SCL Information and then rerun the upgrade process for this assignment' );
5246: FND_FILE.NEW_LINE(FND_FILE.LOG);
5247: END IF;
5248: END IF;
5241: END IF;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5244: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid SCL Information for Assignment as of 01-JUL-2012' );
5245: fnd_file.put_line(FND_FILE.LOG,'Please correct assignment SCL Information and then rerun the upgrade process for this assignment' );
5246: FND_FILE.NEW_LINE(FND_FILE.LOG);
5247: END IF;
5248: END IF;
5249: END LOOP;
5242: ELSE
5243: fnd_file.put_line(FND_FILE.LOG,'Assignment ID '||asgrec.assignment_id || ' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||') not upgraded from Tax Scale 7 to 2' );
5244: fnd_file.put_line(FND_FILE.LOG,'due to non-availability of valid SCL Information for Assignment as of 01-JUL-2012' );
5245: fnd_file.put_line(FND_FILE.LOG,'Please correct assignment SCL Information and then rerun the upgrade process for this assignment' );
5246: FND_FILE.NEW_LINE(FND_FILE.LOG);
5247: END IF;
5248: END IF;
5249: END LOOP;
5250:
5248: END IF;
5249: END LOOP;
5250:
5251: IF l_upgraded = 0 THEN
5252: FND_FILE.NEW_LINE(FND_FILE.LOG);
5253: fnd_file.put_line(FND_FILE.LOG,'No assignments upgraded from tax scale = 7 to tax scale = 2' );
5254: END IF;
5255:
5256: IF l_count > 0 THEN
5249: END LOOP;
5250:
5251: IF l_upgraded = 0 THEN
5252: FND_FILE.NEW_LINE(FND_FILE.LOG);
5253: fnd_file.put_line(FND_FILE.LOG,'No assignments upgraded from tax scale = 7 to tax scale = 2' );
5254: END IF;
5255:
5256: IF l_count > 0 THEN
5257: FND_FILE.NEW_LINE(FND_FILE.LOG);
5253: fnd_file.put_line(FND_FILE.LOG,'No assignments upgraded from tax scale = 7 to tax scale = 2' );
5254: END IF;
5255:
5256: IF l_count > 0 THEN
5257: FND_FILE.NEW_LINE(FND_FILE.LOG);
5258: fnd_file.put_line(FND_FILE.LOG,'Total Number of succesfully upgraded Employees = '||l_count);
5259: END IF;
5260:
5261: ELSE /* upgrading future or end dated assignments */
5254: END IF;
5255:
5256: IF l_count > 0 THEN
5257: FND_FILE.NEW_LINE(FND_FILE.LOG);
5258: fnd_file.put_line(FND_FILE.LOG,'Total Number of succesfully upgraded Employees = '||l_count);
5259: END IF;
5260:
5261: ELSE /* upgrading future or end dated assignments */
5262:
5259: END IF;
5260:
5261: ELSE /* upgrading future or end dated assignments */
5262:
5263: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Future or End Dated Employee from 7 to 2 ' );
5264: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5265: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5266:
5267: -- below code is for scenarios where single/multiple future dated element entries for tax information, single/multiple future dated records for assignment
5260:
5261: ELSE /* upgrading future or end dated assignments */
5262:
5263: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Future or End Dated Employee from 7 to 2 ' );
5264: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5265: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5266:
5267: -- below code is for scenarios where single/multiple future dated element entries for tax information, single/multiple future dated records for assignment
5268: FOR asgrec IN csr_fut_ele_entries(l_element_type_id,l_inp_value_id_table(13)) LOOP
5261: ELSE /* upgrading future or end dated assignments */
5262:
5263: fnd_file.put_line(FND_FILE.LOG,'Upgrading Tax Scales for Future or End Dated Employee from 7 to 2 ' );
5264: fnd_file.put_line(FND_FILE.LOG,'This mode will update the Assignment Leave Loading Flag from No to Yes effective 01-JUL-2012' );
5265: fnd_file.put_line(FND_FILE.LOG,'This mode will also update the Assignment Tax Scale in element entries from 7 to 2 effective 01-JUL-2012' );
5266:
5267: -- below code is for scenarios where single/multiple future dated element entries for tax information, single/multiple future dated records for assignment
5268: FOR asgrec IN csr_fut_ele_entries(l_element_type_id,l_inp_value_id_table(13)) LOOP
5269: l_le_id := -1;
5344: ,p_no_managers_warning => l_no_managers_warning -- out parameter
5345: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5346: );
5347: COMMIT;
5348: fnd_file.new_line(FND_FILE.LOG);
5349: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for assignment record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5350: END IF;
5351: END IF;
5352: END LOOP;
5345: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5346: );
5347: COMMIT;
5348: fnd_file.new_line(FND_FILE.LOG);
5349: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for assignment record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5350: END IF;
5351: END IF;
5352: END LOOP;
5353:
5397: ,p_no_managers_warning => l_no_managers_warning -- out parameter
5398: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5399: );
5400: COMMIT;
5401: fnd_file.new_line(FND_FILE.LOG);
5402: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for future assignment records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5403: END IF;
5404: END IF;
5405: END LOOP;
5398: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5399: );
5400: COMMIT;
5401: fnd_file.new_line(FND_FILE.LOG);
5402: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for future assignment records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5403: END IF;
5404: END IF;
5405: END LOOP;
5406:
5503: ,p_override_user_ent_chk => 'Y'
5504: );
5505:
5506: COMMIT;
5507: fnd_file.new_line(FND_FILE.LOG);
5508: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5509: END IF;
5510:
5511: END LOOP;
5504: );
5505:
5506: COMMIT;
5507: fnd_file.new_line(FND_FILE.LOG);
5508: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5509: END IF;
5510:
5511: END LOOP;
5512:
5567: ,p_override_user_ent_chk => 'Y'
5568: );
5569:
5570: COMMIT;
5571: fnd_file.new_line(FND_FILE.LOG);
5572: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for future element records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5573: END IF;
5574: END IF;
5575: END LOOP;
5568: );
5569:
5570: COMMIT;
5571: fnd_file.new_line(FND_FILE.LOG);
5572: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for future element records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5573: END IF;
5574: END IF;
5575: END LOOP;
5576:
5671: ,p_no_managers_warning => l_no_managers_warning -- out parameter
5672: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5673: );
5674: COMMIT;
5675: fnd_file.new_line(FND_FILE.LOG);
5676: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for assignment record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5677: END IF;
5678: END IF;
5679: END LOOP;
5672: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5673: );
5674: COMMIT;
5675: fnd_file.new_line(FND_FILE.LOG);
5676: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for assignment record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5677: END IF;
5678: END IF;
5679: END LOOP;
5680:
5724: ,p_other_manager_warning => l_other_manager_warning -- out parameter
5725: );
5726: COMMIT;
5727:
5728: fnd_file.new_line(FND_FILE.LOG);
5729: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for future assignment records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5730: END IF;
5731: END IF;
5732: END LOOP;
5725: );
5726: COMMIT;
5727:
5728: fnd_file.new_line(FND_FILE.LOG);
5729: fnd_file.put_line(FND_FILE.LOG,'succesfully changed leave loading flag for future assignment records for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5730: END IF;
5731: END IF;
5732: END LOOP;
5733:
5810: );
5811:
5812: COMMIT;
5813:
5814: fnd_file.new_line(FND_FILE.LOG);
5815: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5816:
5817: ELSIF l_full_name is null and l_emp_num is null THEN
5818: fnd_file.new_line(FND_FILE.LOG);
5811:
5812: COMMIT;
5813:
5814: fnd_file.new_line(FND_FILE.LOG);
5815: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5816:
5817: ELSIF l_full_name is null and l_emp_num is null THEN
5818: fnd_file.new_line(FND_FILE.LOG);
5819: fnd_file.put_line(FND_FILE.LOG,'assignment record does not exist for assignment id '||asgrec.assignment_id|| '. probably a case of data corruption. please insert record and then upgrade');
5814: fnd_file.new_line(FND_FILE.LOG);
5815: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5816:
5817: ELSIF l_full_name is null and l_emp_num is null THEN
5818: fnd_file.new_line(FND_FILE.LOG);
5819: fnd_file.put_line(FND_FILE.LOG,'assignment record does not exist for assignment id '||asgrec.assignment_id|| '. probably a case of data corruption. please insert record and then upgrade');
5820: fnd_file.new_line(FND_FILE.LOG);
5821: END IF;
5822:
5815: fnd_file.put_line(FND_FILE.LOG,'succesfully changed tax scale for element record as of 01-JUL-2012 for assignment id '||asgrec.assignment_id||' (Employee name / Employee number - ' || l_full_name ||' / ' || l_emp_num ||')');
5816:
5817: ELSIF l_full_name is null and l_emp_num is null THEN
5818: fnd_file.new_line(FND_FILE.LOG);
5819: fnd_file.put_line(FND_FILE.LOG,'assignment record does not exist for assignment id '||asgrec.assignment_id|| '. probably a case of data corruption. please insert record and then upgrade');
5820: fnd_file.new_line(FND_FILE.LOG);
5821: END IF;
5822:
5823: END IF;
5816:
5817: ELSIF l_full_name is null and l_emp_num is null THEN
5818: fnd_file.new_line(FND_FILE.LOG);
5819: fnd_file.put_line(FND_FILE.LOG,'assignment record does not exist for assignment id '||asgrec.assignment_id|| '. probably a case of data corruption. please insert record and then upgrade');
5820: fnd_file.new_line(FND_FILE.LOG);
5821: END IF;
5822:
5823: END IF;
5824: END LOOP;
5830:
5831: error_code :=SQLCODE;
5832: error_message := SQLERRM ;
5833:
5834: FND_FILE.PUT_LINE(FND_FILE.LOG,' ***** ERRORS ***** ');
5835: FND_FILE.PUT_LINE(FND_FILE.LOG,' Report to Oracle Support.');
5836: FND_FILE.PUT_LINE(FND_FILE.LOG,error_code ||' : '||error_message);
5837:
5838: raise;
5831: error_code :=SQLCODE;
5832: error_message := SQLERRM ;
5833:
5834: FND_FILE.PUT_LINE(FND_FILE.LOG,' ***** ERRORS ***** ');
5835: FND_FILE.PUT_LINE(FND_FILE.LOG,' Report to Oracle Support.');
5836: FND_FILE.PUT_LINE(FND_FILE.LOG,error_code ||' : '||error_message);
5837:
5838: raise;
5839:
5832: error_message := SQLERRM ;
5833:
5834: FND_FILE.PUT_LINE(FND_FILE.LOG,' ***** ERRORS ***** ');
5835: FND_FILE.PUT_LINE(FND_FILE.LOG,' Report to Oracle Support.');
5836: FND_FILE.PUT_LINE(FND_FILE.LOG,error_code ||' : '||error_message);
5837:
5838: raise;
5839:
5840: END upgrade_tax_scale;