Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Inventory on Item List

Posted on by 14
Hello, 
 
I have extended the locations table and added global dimensions 1 (branch) and 2 (department).  Would like the items list to show inventory in locations which belong to a certain branch. How do i go about modifying this: 
 
 
        field(50903; /Branch Inventory/; Decimal)
        {
            CalcFormula = Sum(/Item Ledger Entry/.Quantity WHERE(/Item No./ = FIELD(/No./),
                                                                  /Global Dimension 1 Code/ = FIELD(/Global Dimension 1 Filter/),
                                                                  /Global Dimension 2 Code/ = FIELD(/Global Dimension 2 Filter/),
                                                                  /Location Code/ = FIELD(/Location Filter/),
                                                                  /Drop Shipment/ = FIELD(/Drop Shipment Filter/),
                                                                  /Variant Code/ = FIELD(/Variant Filter/),
                                                                  /Lot No./ = FIELD(/Lot No. Filter/),
                                                                  /Serial No./ = FIELD(/Serial No. Filter/),
                                                                  /Unit of Measure Code/ = FIELD(/Unit of Measure Filter/),
                                                                  /Package No./ = FIELD(/Package No. Filter/)));
            Caption = 'Inventory';
            DecimalPlaces = 0 : 5;
            Editable = false;
            FieldClass = FlowField;
 
        }
N/B: will create a inventory field for each branch 
Categories:
  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    Inventory on Item List
    Hi,
    Your calcformula property seems correct , but if you are still unable to reterieve the result first check if you have the data basis on the filter you provided else I would suggest to write the code OnAfterGetRecord to get the exact values.
     
    Thanks
    Nitin
     
     
  • gdrenteria Profile Picture
    gdrenteria 12,065 Most Valuable Professional on at
    Inventory on Item List
    Hi
    You could use this "TableFilters" as a "constant expression", setting the dimension value to 1.
    Best regards
    Gerardo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,219 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans