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 AX (Archived)

Receipt Printing for Suspended Transactions Through Default Receipt Printing Utility In POS Dynamics AX

(0) ShareShare
ReportReport
Posted on by

I am working to customize a functionality for printing the receipt of suspended transactions. One option is to develop a new crystal report for receipt printing. But I am concerned with the default receipt that is already available in POS and its code is also available in POS SDK (printing, peripheral) . How can I use that receipt for printing the suspended transactions ?

any help will appreciate able.

Thanx in advance. 

fsrcpt.png

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Oksana Kovaliova Profile Picture
    3,597 on at

    Hi Muhammad,

    1) You can use standard method GetSuspendedTransaction of class SuspendRetrieveData from POS DataAccess.dll to load suspended transaction data from database to RetailTransaction object.

    2) After this you can call Printing service PrintReceipt method with FormType = Receipt and Transaction = your RetailTransaction from p.1

    2 things to remember are:

    1) Receipt ID will be empty, because Receipt ID is populated right after transaction is closed (when full amount is paid)

    2) When you recall this transaction, its transaction ID will be changed by POS => transaction ID from your receipt will become invalid.

    Regards,

    Oksana

  • Abdul Manan Profile Picture
    120 on at

    Hi Oksana Kovaliova ,

    I am trying to do same thing in suspend trigger but facing error of null reference in obj Transaction object ,can you check what is wrong in this code and also mention what should I pass in IRounding parameter ,currently I am passing null.

    Your quick response is highly appreciated .

    public void PostSuspendTransaction(IPosTransaction posTransaction)
    {
    LSRetailPosis.ApplicationLog.Log("SuspendTriggers.PostSuspendTransaction", "After the suspension of a transaction...", LSRetailPosis.LogTraceLevel.Trace);
    SuspendRetrieveData test =null;
    RetailTransaction obj;
    //SqlConnection conn =this.Application.Settings.Database.Connection;
    SqlConnection conn = new SqlConnection();
    conn.ConnectionString =
    "Data Source=DEVSRVR;" +
    "Initial Catalog=MTH01;" +
    "Integrated Security=SSPI;";

    obj = test.GetSuspendedTransaction(conn, posTransaction.TransactionId, null, posTransaction.StoreId, "PKR", true);
    }

  • Oksana Kovaliova Profile Picture
    3,597 on at

    Hi Abdul,

    Your 'test' object is null - and you try to call GetSuspendedTransaction for NULL - it will cause exception

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 AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans