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

Community site session details

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

Customize Receipt Layout of Dynamic 365

(1) ShareShare
ReportReport
Posted on by 2
I want to add a line in the receipt when printing. I'm trying with the OnBeforePrintLoyalty function.  But when I print, nothing changes. Can someone help me with an example to customize receipts on dynamic 365?
Regards
 
About vesion: 
Microsoft_Base Application_24.1.18927.19498
LS Retail_LS Central_24.1.21.1157
 
 
    [EventSubscriber(ObjectType::Codeunit, Codeunit::"LSC POS Print Utility", 'OnBeforePrintLoyalty', '', true, true)]
    local procedure OnBeforePrintLoyalty(var Transaction: Record "LSC Transaction Header"; var PrintBuffer: Record "LSC POS Print Buffer"; var PrintBufferIndex: Integer; var LinesPrinted: Integer; var DSTR1: Text[100]; var IsHandled: Boolean)
    var
        cuPT: Codeunit "LSC POS Transaction";
        POSFunctions: Codeunit "LSC POS Functions";
        i: Integer;
        PadText: Text;
    begin
        POSPrintUtilityCus.GetPrintBufferRec(PrintBuffer, PrintBufferIndex, LinesPrinted);
        POSPrintUtilityCus.PrintLine(2, 'Test Line');
    end;
I have the same question (0)
  • Martin Dráb Profile Picture
    236,663 Most Valuable Professional on at
    Customize Receipt Layout of Dynamic 365
    Moved from Integration, Dataverse, and general topics forum to Small and medium business | Business Central, NAV, RMS forum, because it seems to be about D365 Business Central.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,056

#2
YUN ZHU Profile Picture

YUN ZHU 1,680 Super User 2025 Season 2

#3
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 1,679

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans