1167: END;
1168:
1169:
1170: -- Bug 5124868: as part of refactoring for this bug, the get_entity_org_id
1171: -- method was removed from this package and moved to PO_MOAC_UTILS_PVT.
1172: -- get_entity_org_id was originally created for bug 5092574
1173:
1174:
1175: /*===========================================================================
1618: elsif (x_object_type = 'E' ) then /* Requisition Header */
1619: x_progress := 110;
1620: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1621: --the document currency. Bug 5124868: refactored this call
1622: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1623: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1624: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1625: , x_object_id);--bug#5092574
1626:
1619: x_progress := 110;
1620: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1621: --the document currency. Bug 5124868: refactored this call
1622: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1623: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1624: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1625: , x_object_id);--bug#5092574
1626:
1627: po_core_s2.get_req_currency (x_object_id,
1620: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1621: --the document currency. Bug 5124868: refactored this call
1622: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1623: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1624: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1625: , x_object_id);--bug#5092574
1626:
1627: po_core_s2.get_req_currency (x_object_id,
1628: x_base_currency,
1696:
1697: x_progress := 140;
1698: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1699: --the document currency. Bug 5124868: refactored this call
1700: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1701: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1702: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1703: , x_object_id);--bug#5092574
1704:
1697: x_progress := 140;
1698: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1699: --the document currency. Bug 5124868: refactored this call
1700: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1701: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1702: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1703: , x_object_id);--bug#5092574
1704:
1705: po_core_s2.get_req_currency (x_object_id,
1698: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1699: --the document currency. Bug 5124868: refactored this call
1700: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1701: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1702: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1703: , x_object_id);--bug#5092574
1704:
1705: po_core_s2.get_req_currency (x_object_id,
1706: x_base_currency,
1769:
1770: x_progress := 162;
1771: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1772: --the document currency. Bug 5124868: refactored this call
1773: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1774: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1775: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1776: , x_object_id);--bug#5092574
1777:
1770: x_progress := 162;
1771: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1772: --the document currency. Bug 5124868: refactored this call
1773: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1774: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1775: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1776: , x_object_id);--bug#5092574
1777:
1778: po_core_s2.get_req_currency (x_object_id,
1771: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1772: --the document currency. Bug 5124868: refactored this call
1773: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1774: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1775: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1776: , x_object_id);--bug#5092574
1777:
1778: po_core_s2.get_req_currency (x_object_id,
1779: x_base_currency,