Skip to main content
Community site session details

Community site session details

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

Quantity on item tracking in purchase lines

(2) ShareShare
ReportReport
Posted on by 394
When we assign a lot number in the item tracking for a purchase line, it always defaults in the Outstanding Quantity from the Purchase Line. Is there a setting or suggestion for how to have the Quantity default to the Qty to Receive instead?
  • Suggested answer
    Mohana Yadav Profile Picture
    60,341 Super User 2025 Season 2 on at
    Quantity on item tracking in purchase lines
    I hope you are using Assign Lot No. function.
    You can try this.
     
     [EventSubscriber(ObjectType::Page, Page::"Item Tracking Lines", 'OnAssignTrackingNoOnAfterCalcQtyToCreate', '', true, true)]
        local procedure OnAssignTrackingNoOnAfterCalcQtyToCreate_UsePurchaseQtyToReceive(var TrackingSpecification: Record "Tracking Specification"; var SourceTrackingSpecification: Record "Tracking Specification"; var TotalTrackingSpecification: Record "Tracking Specification"; var QtyToCreate: Decimal; FieldID: Integer)
        begin
            if FieldID <> TrackingSpecification.FieldNo("Lot No.") then
                exit;
     
            if SourceTrackingSpecification."Source Type" <> Database::"Purchase Line" then
                exit;
     
            if SourceTrackingSpecification."Source Subtype" in [2, 5] then
                exit;
     
            QtyToCreate := SourceTrackingSpecification."Qty. to Handle (Base)";
        end;
  • Suggested answer
    Sahib Dino Profile Picture
    131 on at
    Quantity on item tracking in purchase lines

    here’s no standard setting in Business Central to make the Quantity in Item Tracking Lines default to the Qty. to Receive instead of the Outstanding Quantity. However, if this behavior is critical to your workflow, you can achieve it through AL customization.

    By modifying the logic in the ItemTrackingLines page or extending the ItemTrackingManagement codeunit, you can set the default quantity to match Qty. to Receive. This ensures more accurate tracking, especially during partial receipts.


  • Suggested answer
    Mansi Soni Profile Picture
    7,736 Super User 2025 Season 2 on at
    Quantity on item tracking in purchase lines
    Hello,
     

    No, there’s no standard Business Central setting to make the item tracking line default to Qty. to Receive instead of Outstanding Quantity  it will pull from Outstanding Quantity. If you want it to behave differently, the options are: Manually edit the quantity in the Item Tracking Lines to match Qty. to Receive each time or use a customization (small AL modification) to change the default source field from Outstanding Quantity to Qty. to Receive in the item tracking page logic.

    Hope this answer will help you!

    Regards,
    Mansi Soni
     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 3,878

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 3,583 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 3,175 Super User 2025 Season 2

Featured topics

Product updates

Dynamics 365 release plans