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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Retail POS Transaction Types Identification

(0) ShareShare
ReportReport
Posted on by

in retail pos there are different types of transactions like customer order, sales and payment etc.

we can see these labels with transactions in the show journal form in the gridview under the title "Type" once these transactions are made.

My question is How can we differentiate these transactions in code.

I need to print transaction types and sub types on the receipt. for example there is a customer order transaction with sub type quotation and sales order separately.

Although the RetailTransaction object holds an object named TransactionType which gives us some information about the transaction type but it does not precisely differentiate them as it declares sales transactions and payment transactions as sales transactions.

Thanks in advance.

*This post is locked for comments

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

    Hi Muhammad,

    TransactionType field should be enough to determine exact type of transaction (AX uses this type to understand how to process transactions).

    Could you, please, explain what you mean saying 'as it declares sales transactions and payment transactions as sales transactions'?

    Regards,

    Oksana 

  • Community Member Profile Picture
    on at

    Thanks Oksana for your  immediate reply. 

    By " it declares sales transactions and payment transactions as sales transactions" I mean that although in the form showJournal both these transactions are being separated by types as sales and payment. But we try to debug and check in the code then we find their TransactionType as sales for both. I beleive there is some other factor as well, in retailtransaction object that differentiate them.

    For more clear understanding i have added an image please check that  as well.

    transactiontype-error.jpg

  • Verified answer
    Oksana Kovaliova Profile Picture
    3,597 on at

    Hi Muhammad,

    Why are you using RetailTransaction as parameter in the method? 'Payment' transaction will have different type - CustomerPaymentTransaction.

    Base type for both transactions is PosTransaction - if you reaadTransactionType from it, it should be correct

    Regards,

    Oksana

  • Community Member Profile Picture
    on at

    Thank you Oksana,

    I think it make sense. seems to be a logical way to find the transaction type.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans