447:
448: --
449: -- Update local terms as well if source doc is a local contract
450:
451: IF ( PO_GA_PVT.is_owning_org(l_source_doc_id) OR
452: PO_GA_PVT.is_local_document(l_source_doc_id, 'CONTRACT') OR
453: (l_quotation_count = 1 and l_ship_to_location_id is not null)) --Bug 14553745
454: THEN
455:
448: --
449: -- Update local terms as well if source doc is a local contract
450:
451: IF ( PO_GA_PVT.is_owning_org(l_source_doc_id) OR
452: PO_GA_PVT.is_local_document(l_source_doc_id, 'CONTRACT') OR
453: (l_quotation_count = 1 and l_ship_to_location_id is not null)) --Bug 14553745
454: THEN
455:
456: UPDATE po_headers_all