DBA Data[Home] [Help]

APPS.PO_VAL_DISTRIBUTIONS2 dependencies on HR_LOCATIONS

Line 211: -- then validate against hr_locations based on ship_to_organization_id

207:
208: -----------------------------------------------------------
209: -- Validation Logic:
210: -- If deliver_to_location_id is not null,
211: -- then validate against hr_locations based on ship_to_organization_id
212: -----------------------------------------------------------
213: PROCEDURE deliver_to_location_id(
214: p_id_tbl IN po_tbl_number,
215: p_deliver_to_location_id_tbl IN po_tbl_number,

Line 259: FROM hr_locations

255: FROM DUAL
256: WHERE p_deliver_to_location_id_tbl(i) IS NOT NULL
257: AND NOT EXISTS(
258: SELECT 1
259: FROM hr_locations
260: WHERE NVL(inventory_organization_id, p_ship_to_org_id_tbl(i)) = p_ship_to_org_id_tbl(i)
261: AND NVL(inactive_date, TRUNC(SYSDATE + 1)) > TRUNC(SYSDATE)
262: AND location_id = p_deliver_to_location_id_tbl(i))
263: AND NOT EXISTS(