Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to show credit memo amount value against invoice.

(1) ShareShare
ReportReport
Posted on by 153

Hi Guys,

I have one report. i.e. Sales invoice report.

This report using 2 dataitems:  sales invoice header & sales invoice line.

For below exaample :  My first invoice i.e. TL586-3045-2324 we have applied a credit memo against that invoice.

I want to show on my report : For example : If  we apply a credit memo against a particular invoice, then that credit memo amount is shown on the report. i.e. negative amount is shown on report i.e.- 25640

&  if we don't apply a credit memo against a particular invoice, then that invoice amount is shown on the report i.e. 25640.

& this amount values come from customer ledger entry.

I am writing below logic on the sales invoice header- on the OnAfterGetRecord trigger.

but i didn't get right output. my output shows only positive values.

I

Is any way to do this.

  • Suggested answer
    YUN ZHU Profile Picture
    78,808 Super User 2025 Season 1 on at
    RE: How to show credit memo amount value against invoice.

    Hi, what about using OnPostReport (Report) Trigger? Or the easiest way is to add "-" directly to the Layout file, although this is not recommended.

    Hope this helps.

    Thanks.

    ZHU

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,888 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,772 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans