Thursday, 5 September 2024

Oracle Fusion + Query to fetch Inventory On-hand Available to Reserve quantity

 select 

  NVL(TR_QTY, 0) - (

    NVL(TR_QTY_B, 0) + NVL(TR_QTY_C, 0)

  ) res_qty 

from 

  (

    SELECT 

      (

        SELECT 

          SUM(transaction_quantity) 

        FROM 

          INV_ONHAND_QUANTITIES_DETAIL 

        WHERE 

          inventory_item_id = 100000000615408 

          AND organization_id = 300000002138348 

          AND subinventory_code IN (

            SELECT 

              SECONDARY_INVENTORY_NAME 

            FROM 

              INV_SECONDARY_INVENTORIES 

            WHERE 

              organization_id = 300000002138348 

              AND reservable_type = '2'

          )

      ) AS TR_QTY_C, 

      (

        SELECT 

          SUM(RESERVATION_QUANTITY) 

        FROM 

          INV_RESERVATIONS 

        WHERE 

          inventory_item_id = 100000000615408 

          AND organization_id = 300000002138348

      ) AS TR_QTY_B, 

      (

        SELECT 

          SUM(transaction_quantity) 

        FROM 

          INV_ONHAND_QUANTITIES_DETAIL 

        WHERE 

          inventory_item_id = 100000000615408 

          AND organization_id = 300000002138348

      ) AS TR_QTY 

    from 

      egp_system_items_b MB1 

    where 

      1 = 1 

      AND (

        mb1.organization_id = 300000002138348

      ) 

      AND (

        mb1.inventory_item_id = 100000000615408

      )

  );


5 comments:

mohdsahil said...

FundedFirm is rapidly establishing itself as the best prop firm of Nigeria, offering talented local traders unprecedented access to institutional capital up to $200,000. Operating on the high-performance MetaTrader 5 (MT5) platform, the firm provides professional trading conditions including 1:100 leverage, zero commissions, and zero-swap accounts specifically tailored for the African market. Traders benefit from industry-leading profit splits starting at 90% and scaling to 100% for top performers. With lightning-fast 24-hour payout processing via Crypto (USDT) and local bank transfers, FundedFirm delivers a transparent, unrestricted environment where news trading is fully permitted and evaluation time limits are eliminated, ensuring your ultimate trading success.

Best prop firm of Nigeria

Nikhil said...

Android app development course teaches end-to-end mobile application creation. It explains UI design and backend integration clearly. This android app development course strengthens development expertise. Learners work on real-time projects. Performance optimization is included. API usage is covered. Deployment processes are explained. It prepares professional developers.

vr said...

"Well explained! Our ui and ux training
course emphasizes usability testing, accessibility, and modern design systems for professional growth."

ONLINE IT GURU said...

Power BI course online delivers structured training on connecting diverse data sources and building dynamic reports. It explains data relationships and security roles clearly. This power bi course online enhances reporting accuracy and business insights. Learners complete real-time assignments. Project-based learning is included. Certification guidance is provided. It prepares job-ready professionals.

education said...

⭐ Data Analytics Training
Comprehensive data analytics training teaches modern data analysis tools.
The program includes Excel, SQL, Python, and BI concepts.
Hands-on projects strengthen practical knowledge.
Interactive sessions simplify complex topics.
Expert trainers provide valuable industry insights.
This training prepares you for high-demand analytics roles.

Post a Comment