352: ------------------------------------------------------------------------ */
353: function Elements2(p_assignment_action_id number) return long is
354: begin
355: return getElements(p_assignment_action_id
356: ,pay_soe_util.getConfig('ELEMENTS2'));
357: end Elements2;
358:
359:
360: /* ---------------------------------------------------------------------
653: ,p_defined_balance_lst => l_defined_balance_lst
654: ,p_context_lst => l_context_lst
655: ,p_output_table => l_output_table);
656: --
657: pay_soe_util.clear;
658: --
659: balCount := 0;
660: if l_output_table.count > 0 then
661: --
666: for i in l_output_table.first..l_output_table.last loop
667: if l_output_table(i).balance_value <> 0 then
668: balCount := balCount + 1;
669: --
670: pay_soe_util.setValue('01'
671: ,l_balance_type_lst(l_output_table(i).defined_balance_id).balance_name
672: ,TRUE,FALSE);
673: pay_soe_util.setValue('02'
674: ,l_balance_type_lst(l_output_table(i).defined_balance_id).reporting_name
669: --
670: pay_soe_util.setValue('01'
671: ,l_balance_type_lst(l_output_table(i).defined_balance_id).balance_name
672: ,TRUE,FALSE);
673: pay_soe_util.setValue('02'
674: ,l_balance_type_lst(l_output_table(i).defined_balance_id).reporting_name
675: ,FALSE,FALSE);
676: pay_soe_util.setValue('03'
677: ,l_balance_type_lst(l_output_table(i).defined_balance_id).dimension_name
672: ,TRUE,FALSE);
673: pay_soe_util.setValue('02'
674: ,l_balance_type_lst(l_output_table(i).defined_balance_id).reporting_name
675: ,FALSE,FALSE);
676: pay_soe_util.setValue('03'
677: ,l_balance_type_lst(l_output_table(i).defined_balance_id).dimension_name
678: ,FALSE,FALSE);
679: pay_soe_util.setValue('04'
680: ,l_balance_type_lst(l_output_table(i).defined_balance_id).defined_balance_name
675: ,FALSE,FALSE);
676: pay_soe_util.setValue('03'
677: ,l_balance_type_lst(l_output_table(i).defined_balance_id).dimension_name
678: ,FALSE,FALSE);
679: pay_soe_util.setValue('04'
680: ,l_balance_type_lst(l_output_table(i).defined_balance_id).defined_balance_name
681: ,FALSE,FALSE);
682: pay_soe_util.setValue('05',
683: hr_general.decode_organization(to_char(l_output_table(i).tax_unit_id))
678: ,FALSE,FALSE);
679: pay_soe_util.setValue('04'
680: ,l_balance_type_lst(l_output_table(i).defined_balance_id).defined_balance_name
681: ,FALSE,FALSE);
682: pay_soe_util.setValue('05',
683: hr_general.decode_organization(to_char(l_output_table(i).tax_unit_id))
684: ,FALSE,FALSE);
685: pay_soe_util.setValue('06',to_char(l_output_table(i).tax_unit_id),FALSE,FALSE);
686:
681: ,FALSE,FALSE);
682: pay_soe_util.setValue('05',
683: hr_general.decode_organization(to_char(l_output_table(i).tax_unit_id))
684: ,FALSE,FALSE);
685: pay_soe_util.setValue('06',to_char(l_output_table(i).tax_unit_id),FALSE,FALSE);
686:
687:
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
684: ,FALSE,FALSE);
685: pay_soe_util.setValue('06',to_char(l_output_table(i).tax_unit_id),FALSE,FALSE);
686:
687:
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
690: pay_soe_util.setValue('09',l_output_table(i).source_text,FALSE,FALSE);
691: pay_soe_util.setValue('10',l_output_table(i).source_number,FALSE,FALSE);
692: pay_soe_util.setValue('11',l_output_table(i).source_text2,FALSE,FALSE);
685: pay_soe_util.setValue('06',to_char(l_output_table(i).tax_unit_id),FALSE,FALSE);
686:
687:
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
690: pay_soe_util.setValue('09',l_output_table(i).source_text,FALSE,FALSE);
691: pay_soe_util.setValue('10',l_output_table(i).source_number,FALSE,FALSE);
692: pay_soe_util.setValue('11',l_output_table(i).source_text2,FALSE,FALSE);
693: l_si_type_name := NULL;
686:
687:
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
690: pay_soe_util.setValue('09',l_output_table(i).source_text,FALSE,FALSE);
691: pay_soe_util.setValue('10',l_output_table(i).source_number,FALSE,FALSE);
692: pay_soe_util.setValue('11',l_output_table(i).source_text2,FALSE,FALSE);
693: l_si_type_name := NULL;
694: IF l_output_table(i).source_text IS NOT NULL THEN
687:
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
690: pay_soe_util.setValue('09',l_output_table(i).source_text,FALSE,FALSE);
691: pay_soe_util.setValue('10',l_output_table(i).source_number,FALSE,FALSE);
692: pay_soe_util.setValue('11',l_output_table(i).source_text2,FALSE,FALSE);
693: l_si_type_name := NULL;
694: IF l_output_table(i).source_text IS NOT NULL THEN
695: l_si_type_name := pay_nl_general.get_sit_type_name(l_balance_type_lst(l_output_table(i).defined_balance_id).balance_type_id
688: pay_soe_util.setValue('07',l_output_table(i).jurisdiction_code,FALSE,FALSE);
689: pay_soe_util.setValue('08',l_output_table(i).source_id,FALSE,FALSE);
690: pay_soe_util.setValue('09',l_output_table(i).source_text,FALSE,FALSE);
691: pay_soe_util.setValue('10',l_output_table(i).source_number,FALSE,FALSE);
692: pay_soe_util.setValue('11',l_output_table(i).source_text2,FALSE,FALSE);
693: l_si_type_name := NULL;
694: IF l_output_table(i).source_text IS NOT NULL THEN
695: l_si_type_name := pay_nl_general.get_sit_type_name(l_balance_type_lst(l_output_table(i).defined_balance_id).balance_type_id
696: ,locked_assignment_action_id,l_effective_date,l_output_table(i).source_text);
708: END LOOP;
709: END IF;
710: /* end Bug 4253982 */
711: END IF;
712: pay_soe_util.setValue('12',l_si_type_name,FALSE,FALSE);
713: pay_soe_util.setValue(16,to_char(l_output_table(i).balance_value,
714: fnd_currency.get_format_mask(substr(PAY_SOE_GLB.g_currency_code,2,3),40)),FALSE,FALSE);
715: pay_soe_util.setValue(17,to_char(l_output_table(i).defined_balance_id),FALSE,TRUE);
716:
709: END IF;
710: /* end Bug 4253982 */
711: END IF;
712: pay_soe_util.setValue('12',l_si_type_name,FALSE,FALSE);
713: pay_soe_util.setValue(16,to_char(l_output_table(i).balance_value,
714: fnd_currency.get_format_mask(substr(PAY_SOE_GLB.g_currency_code,2,3),40)),FALSE,FALSE);
715: pay_soe_util.setValue(17,to_char(l_output_table(i).defined_balance_id),FALSE,TRUE);
716:
717: end if;
711: END IF;
712: pay_soe_util.setValue('12',l_si_type_name,FALSE,FALSE);
713: pay_soe_util.setValue(16,to_char(l_output_table(i).balance_value,
714: fnd_currency.get_format_mask(substr(PAY_SOE_GLB.g_currency_code,2,3),40)),FALSE,FALSE);
715: pay_soe_util.setValue(17,to_char(l_output_table(i).defined_balance_id),FALSE,TRUE);
716:
717: end if;
718: end loop;
719: end if;
718: end loop;
719: end if;
720: --
721: if balCount > 0 then
722: return pay_soe_util.genCursor;
723: else
724: return ('select null COL01 from dual where 1=0');
725: --return null;
726: end if;
734: ------------------------------------------------------------------------ */
735: function Balances1(p_assignment_action_id number) return long is
736: begin
737: return getBalances(p_assignment_action_id
738: ,pay_soe_util.getConfig('BALANCES1'));
739: end Balances1;
740: --
741: /* ---------------------------------------------------------------------
742: Function : Balances2
745: ------------------------------------------------------------------------ */
746: function Balances2(p_assignment_action_id number) return long is
747: begin
748: return getBalances(p_assignment_action_id
749: ,pay_soe_util.getConfig('BALANCES2'));
750: end Balances2;
751: END PAY_NL_SOE;