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

Cancel Sequence number that token

(0) ShareShare
ReportReport
Posted on by

Hi All

I reached to make Product Receipt Take Number automatically

My Problem is : when i click cancel Product receipt the number that was taken returned again

For example

Now the product receipt Number is 20

i created one product receipt for my Purchase order and take number 21

i want if i click cancel the number return to 20

is this possible??

another Question 

is that possible to create more that one product receipt in the Form of Product Receipt ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,407 Super User 2025 Season 2 on at
    RE: Cancel Sequence number that token

    Hi Walid,

    If I do understand you correctly, you have automated the product receipt numbers. What is the importance to re-use the numbers? If you want to, you have to keep in mind that cancellation of a product receipt is not really deleting transactions. It is reversing it. To be able to do this, you have to create some additional business logic where the dependency would be that the number sequence will be setup as continuous. When cancelling the product receipt, you have to call the correct logic to get the unused number in the status list of the number sequence. There are examples on e.g. ledger journal lines how to return the number to this list.

  • Walid Gamal Profile Picture
    on at
    RE: Cancel Sequence number that token

    Hi Andre

    I tried to go inside the form of payment journal but i can not find the code of cancel these journals number sequence can u pass this code??

    Regards.

  • André Arnaud de Calavon Profile Picture
    299,407 Super User 2025 Season 2 on at
    RE: Cancel Sequence number that token

    Hi Walid,

    Most likely the code for journals is put in a class. Another example: CustTable form > Datasource CustTable > Method delete.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans