1172: END;
1173:
1174:
1175: -- Bug 5124868: as part of refactoring for this bug, the get_entity_org_id
1176: -- method was removed from this package and moved to PO_MOAC_UTILS_PVT.
1177: -- get_entity_org_id was originally created for bug 5092574
1178:
1179:
1180: /*===========================================================================
1633: elsif (x_object_type = 'E' ) then /* Requisition Header */
1634: x_progress := 110;
1635: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1636: --the document currency. Bug 5124868: refactored this call
1637: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1638: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1639: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1640: , x_object_id);--bug#5092574
1641:
1634: x_progress := 110;
1635: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1636: --the document currency. Bug 5124868: refactored this call
1637: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1638: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1639: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1640: , x_object_id);--bug#5092574
1641:
1642: po_core_s2.get_req_currency (x_object_id,
1635: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1636: --the document currency. Bug 5124868: refactored this call
1637: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1638: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1639: , PO_MOAC_UTILS_PVT.g_doc_level_HEADER
1640: , x_object_id);--bug#5092574
1641:
1642: po_core_s2.get_req_currency (x_object_id,
1643: x_base_currency,
1711:
1712: x_progress := 140;
1713: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1714: --the document currency. Bug 5124868: refactored this call
1715: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1716: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1717: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1718: , x_object_id);--bug#5092574
1719:
1712: x_progress := 140;
1713: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1714: --the document currency. Bug 5124868: refactored this call
1715: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1716: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1717: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1718: , x_object_id);--bug#5092574
1719:
1720: po_core_s2.get_req_currency (x_object_id,
1713: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1714: --the document currency. Bug 5124868: refactored this call
1715: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1716: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1717: , PO_MOAC_UTILS_PVT.g_doc_level_LINE
1718: , x_object_id);--bug#5092574
1719:
1720: po_core_s2.get_req_currency (x_object_id,
1721: x_base_currency,
1784:
1785: x_progress := 162;
1786: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1787: --the document currency. Bug 5124868: refactored this call
1788: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1789: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1790: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1791: , x_object_id);--bug#5092574
1792:
1785: x_progress := 162;
1786: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1787: --the document currency. Bug 5124868: refactored this call
1788: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1789: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1790: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1791: , x_object_id);--bug#5092574
1792:
1793: po_core_s2.get_req_currency (x_object_id,
1786: --bug#5092574 Retrieve the doc org id and pass this to retrieve
1787: --the document currency. Bug 5124868: refactored this call
1788: l_org_id := PO_MOAC_UTILS_PVT.get_entity_org_id(
1789: PO_MOAC_UTILS_PVT.g_doc_type_REQUISITION
1790: , PO_MOAC_UTILS_PVT.g_doc_level_DISTRIBUTION
1791: , x_object_id);--bug#5092574
1792:
1793: po_core_s2.get_req_currency (x_object_id,
1794: x_base_currency,