Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Price including VAT value was different in Sales Credit Memo (Report 207)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am modifying Report 207 and use "Fields!PrsInclVAT_SalesCrMemoHrd.Value" as a condition to change the title of the report in page header and to hide the VAT column in page body.

What I have discovered, when used in page header, the value of this field is always "True", but will show "True" or "False" in the page body depending on whether Price including VAT is ticked or not during sales credit memo creation.

Report Builder

Report-207-Prices-include-VAT.PNG

Report Result

Report-result.PNG

Do I use the wrong field?


Regards,

Susy

*This post is locked for comments

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Price including VAT value was different in Sales Credit Memo (Report 207)

    Unfortunately you cannot use Fields!PrsInclVAT_SalesCrMemoHdr.Value in the header directly you need to reference the textbox which has that value using ReportItems, GetData and SetData functions are used for that purpose and the field you are using code.getdata(27,1)  is referencing the same field but it is formatted so it display yes or not instead of true or false.  You have used right field now, so you should be good.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Price including VAT value was different in Sales Credit Memo (Report 207)

    Hi Suresh,

    I am trying to do the following expression:

    =iif(Fields!PrsInclVAT_SalesCrMemoHrd.Value=true,"Tax Adjustment Note","Adjustment Note")

    The result is always "Tax Adjustment Note", which is weird because I have credit notes that I have purposely unticked the "Price includes VAT" field when posting credit memo.

    Thus with above printscreen, i was trying to display the value of "Fields!PrsInclVAT_SalesCrMemoHrd.Value" in the Page header and Page Body. The result is two different values (Header = True, Body = False).

    Thank you for getting back to me. I have found another field that i can use in the expression which gives the correct result.

    =iif(Code.GetData(27,1)="Yes","Tax Adjustment Note","Adjustment Note")

    Thanks.

    Susy

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Price including VAT value was different in Sales Credit Memo (Report 207)

    What is the expression you are using to display that value on the header ? finally what is the actual value for the generated report. Is it true or false ?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans