Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Amount in the sales header

Posted on by 4,818

Hi expert, Does the field amount in the sale header reflect the total amount field of the sales for the sales? In our system, the amount for most of the sales orders is correct, but some orders has zero in the amount in the sales header even though there are values in the sales line. Please advise! Thank you!

*This post is locked for comments

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Amount in the sales header

    Usually release of the order and opening it back forces recalculation. Alex A mentioned this already, I support this idea.

  • Suggested answer
    TharangaC Profile Picture
    TharangaC 23,116 on at
    RE: Amount in the sales header

    If the value goes as 0 then try releasing sales order as Alex mentioned.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Amount in the sales header

    If you want to see the Total Amount field of Sales Line, you can create new flow field as Order Amount in Sales Header with following expression.

    Sum("Sales Line"."Line Amount" WHERE (Document Type=FIELD(Document Type),Document No.=FIELD(No.)))

    Line Amount field in Sales Line would be always updated and hence you would always get the accurate result.

    Existing Amount field will only gets updates as mentioned by Alex and hence you would not see the Amount for few of the order, which are not yet released or posted.

  • Suggested answer
    RE: Amount in the sales header

    HI,

    Adding some more to what Alex have said, this technology is called SIFT and the Amount field is a FlowField. You still use Amount field on the Sales Header for report calculations, but you have to use CALCFIELDS method to calculate it.

    If your Sales Header Amount field is showing 0 then as Alex suggested, open the Statistics window and check.

    Hope it helps.

  • Suggested answer
    Alex A Profile Picture
    Alex A 2,348 on at
    RE: Amount in the sales header

    It is used to calculate the invoice discount of the sales order. To preserve database performance during sales order entry, the Amount field is only updated when a calculation of the sales invoice discount is required, in the following situations:

    When you post (invoice) the sales order partially or fully.

    When you calculate the sales invoice discount manually.

    When you open the Sales Statistics window for the sales order.

    When you release the sales order.

    In fact, this field doesn't really exist in the table. If you want to calculate the Sales amount for reporting purposes, Sum the [Amount] or [Amount Including VAT] field from the Sales Order Line table.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans