Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Sales Line InitQtyToShip

Posted on by 66

I noticed that the function InitQtyToShip on Sales Line has been modified in NAV2015 between hotfixes:

From:

InitQtyToShip()
"Qty. to Ship" := "Outstanding Quantity";
"Qty. to Ship (Base)" := "Outstanding Qty. (Base)";

CheckServItemCreation;

InitQtyToInvoice;

To:

InitQtyToShip()
GetSalesSetup;
IF SalesSetup."Default Quantity to Ship" = SalesSetup."Default Quantity to Ship"::Remainder THEN BEGIN
  "Qty. to Ship" := "Outstanding Quantity";
  "Qty. to Ship (Base)" := "Outstanding Qty. (Base)";
END ELSE
  IF "Qty. to Ship" <> 0 THEN
    "Qty. to Ship (Base)" := CalcBaseQty("Qty. to Ship");

CheckServItemCreation;

InitQtyToInvoice;


This poses a problem when you try to post manually created invoice on for with Item lines and when the "Default Quantity to Ship" in the "Sales & Receivables Setup" has been set to "Blank". This causes the "Quantity to Ship" to remain zero. When posting the invoice you get the error "Quantity to ship can not be 0".
This seems a rather strange modification... since it poses no problem with "Remainder".
Is this done for a particular reason?

Thanks.

*This post is locked for comments

  • Stijn B Profile Picture
    Stijn B 66 on at
    RE: Sales Line InitQtyToShip

    This mod comes from CU1 (38457) for NAV2015:

  • Stijn B Profile Picture
    Stijn B 66 on at
    RE: Sales Line InitQtyToShip

    I also noticed this has an effect on drop shipment orders for Service Items.
    The "Quantity To Ship" is stil 0 when this function is fired in CU90:

    ServItemMgt.CreateServItemOnSalesLineShpt(SalesOrderHeader,SalesOrderLine,SalesShptLine);

    The "Quantity to Ship" is altered after the execution of this function so the Sales Order Shipment gets posted
    for the right Quantity... however no Service Items are created.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Sales Line InitQtyToShip

    I think they added this modification so that you can control how much quantity you want to ship, and how to react in case of partial shipments. I also think it is useful if you want to make sure your CSR or order processor update that field and confirm before shipping and invoicing.

    It is just adds one more layer of validation before you ship and invoice.

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans