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)

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
    304,154 Super User 2026 Season 1 on at

    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

    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
    304,154 Super User 2026 Season 1 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans