DBA Data[Home] [Help]

APPS.PO_VAL_DISTRIBUTIONS2 dependencies on HR_LOCATIONS

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

219:
220: -----------------------------------------------------------
221: -- Validation Logic:
222: -- If deliver_to_location_id is not null,
223: -- then validate against hr_locations based on ship_to_organization_id
224: -----------------------------------------------------------
225: PROCEDURE deliver_to_location_id(
226: p_id_tbl IN po_tbl_number,
227: p_deliver_to_location_id_tbl IN po_tbl_number,

Line 271: FROM hr_locations

267: FROM DUAL
268: WHERE p_deliver_to_location_id_tbl(i) IS NOT NULL
269: AND NOT EXISTS(
270: SELECT 1
271: FROM hr_locations
272: WHERE NVL(inventory_organization_id, p_ship_to_org_id_tbl(i)) = p_ship_to_org_id_tbl(i)
273: AND NVL(inactive_date, TRUNC(SYSDATE + 1)) > TRUNC(SYSDATE)
274: AND location_id = p_deliver_to_location_id_tbl(i))
275: AND NOT EXISTS(