web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Finding Fields from Source Expression

(0) ShareShare
ReportReport
Posted on by 358

There is a field named Invoice Discount % on the Sales Quote Card.

mibuso.PNG

I need to show this field's value in the Sales Quote (Report 206) but I can't find this field in either the Sales Header or Sales Line. It shows in the SourceExpression. The screenshot I attached above is from Tab SourceExpression. How do I locate this field?

Thanks a lot in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,302 Super User 2026 Season 1 on at

    The invoice discount % is not a standard NAV. It is probably calculated on the open page.

  • Andrea Antoniazzi Profile Picture
    285 on at

    Hi,

    the "Invoice Discount %" is not a field, so is calculated with a function.

    If you look in the page 95 "Sales Quote Subform" you can find the variable InvoiceDiscountPct.

    This variable is calcualated with this code:

    InvoiceDiscountPct := SalesCalcDiscByType.GetCustInvoiceDiscountPct(Rec);

    SalesCalcDiscByType is a global variable on codeunit "Sales - Calc Discount By Type"

    Best regards

  • mysamza Profile Picture
    358 on at

    How do you suggest I access the field's value that is calculated at CodeUnit 56 that is Sales - Calc Discount By Type? I tried making a global variable of type Codeunit and tried accessing VarCreated.GetCustInvoiceDiscountPct(RECORDREF) but it would tell me RECORDREF should belong to 37 and not 0.

    Thank you in advance for pointing me in the direction I can get this figured out!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans