Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to show the percentage in GST Sales invoices?

Posted on by 1,835

Dear Experts,

we are using the customised sales invoices, but i am unable to show the GST rate percentage in my invoice, please help me to resolve it.

My code is below, i have attached the screenshot.

//GST Begin
i := 1;
GSTComponent.RESET;
GSTComponent.SETRANGE("GST Jurisdiction Type","GST Jurisdiction Type");
IF GSTComponent.FINDSET THEN
REPEAT
i+=1;
txtChType[i] := GSTComponent.Code;
DetailedGSTLedgerEntry.RESET;
DetailedGSTLedgerEntry.SETCURRENTKEY("Transaction Type","Document Type","Document No.","Document Line No.");
DetailedGSTLedgerEntry.SETRANGE("Transaction Type",DetailedGSTLedgerEntry."Transaction Type"::Sales);
DetailedGSTLedgerEntry.SETRANGE("Document No.","Document No.");
DetailedGSTLedgerEntry.SETRANGE("Document Line No.","Line No.");
DetailedGSTLedgerEntry.SETRANGE("GST Component Code",txtChType[i]);
IF DetailedGSTLedgerEntry.FINDSET THEN BEGIN
REPEAT
txtChValue[i] += DetailedGSTLedgerEntry."GST Amount";
UNTIL DetailedGSTLedgerEntry.NEXT = 0;
i += 1;
END;
UNTIL GSTComponent.NEXT = 0;
//GST End

3113.test01.png

*This post is locked for comments

  • Suggested answer
    Muratvzr Profile Picture
    Muratvzr 743 on at
    RE: How to show the percentage in GST Sales invoices?

    Please let clear which fields ll be divided and shown as percentage 

    And you can make your calculation ond the report designer field value after this you can change number properties as percantage 

    Ekran-Al_3101_nt_3101_s_3101_.PNG

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans