397: c_assignment_action_id pay_assignment_actions.assignment_action_id%type,
398: c_tax_unit_id hr_organization_units.organization_id%type)
399: IS
400: SELECT target.value
401: FROM ff_archive_item_contexts con2,
402: ff_contexts fc2,
403: ff_archive_items target
404: WHERE target.user_entity_id = c_user_entity_id
405: AND target.context1 = to_char(c_assignment_action_id)
546: RETURN VARCHAR2 IS
547: CURSOR c_sum_of_city_withheld(c_assignment_action_id number,c_tax_unit_id number) IS
548: select nvl(sum(target.value),0)
549: from
550: ff_archive_item_contexts con3,
551: ff_archive_item_contexts con2,
552: ff_contexts fc3,
553: ff_contexts fc2,
554: ff_archive_items target,
547: CURSOR c_sum_of_city_withheld(c_assignment_action_id number,c_tax_unit_id number) IS
548: select nvl(sum(target.value),0)
549: from
550: ff_archive_item_contexts con3,
551: ff_archive_item_contexts con2,
552: ff_contexts fc3,
553: ff_contexts fc2,
554: ff_archive_items target,
555: ff_database_items fdi