95:
96:
97: cursor getLoccd(locid number) is
98: select hrl.location_code
99: from hr_locations hrl,
100: org_organization_definitions ood,
101: financials_system_parameters fsp
102: where hrl.location_id = locid
103: and ood.organization_id = nvl(hrl.inventory_organization_id,
769: cursor get_loc_org_id(loc varchar2) is
770: SELECT hrl.location_id,
771: nvl(hrl.inventory_organization_id,
772: fsp.inventory_organization_id) organization_id
773: from hr_locations hrl,
774: financials_system_parameters fsp
775: where sysdate < nvl(hrl.inactive_date, sysdate + 1)
776: and hrl.location_code = loc;
777:
2038: set (DELIVER_TO_LOCATION_ID, DESTINATION_ORGANIZATION_ID) =
2039: (select hrl.location_id,
2040: nvl(hrl.inventory_organization_id,
2041: fsp.inventory_organization_id)
2042: from hr_locations hrl,
2043: financials_system_parameters fsp
2044: where sysdate < nvl(hrl.inactive_date, sysdate + 1)
2045: and hrl.location_code =
2046: icx_shopping_cart_lines.DELIVER_TO_LOCATION)