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)

Generate Automatically Product Receipt Number for PO

(0) ShareShare
ReportReport
Posted on by 4,624

Hi ,

I need to generate automatically Product Receipt number for Purchase order. I read some threads having similar issue and seems like its not out of box with AX. But bit confusing with some below questions:

1. Do i need to customize number seq. for ProductReceipt (EDT- ProductReceiptId) ??

2.  I am seeing Purchase Parameter form , there is one number seq reference for "InternalProductReceipt" (shown in 1st screenshot) , what is that? is it different for Product receipt(shown in 2nd screenshot)?

2543.PR.PNG  5367.PR1.PNG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    299,399 Super User 2025 Season 2 on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi Visvash,

    It is indeed not supported out of the box, assuming the packing slip ID of the vendor will be used. You have to customize it by enabling the setup on indeed the product receipt field and some coding.

    The internal product receipt is used for voucher numbers.

  • Rohin Profile Picture
    4,624 on at
    RE: Generate Automatically Product Receipt Number for PO

    Thanks Andre, Noted your reply.

    Well, I have knowledge for creating the number sequence for field, but in this case i have few confusions , would like to discuss here, please see below steps:

    1. need to write code in loadmodule() of NumberSeqModulePurchaseOrder class for ProductReceiptID

    2. Write a method on PurchParameters table to get NumberSeqReference .

    3.  Create a job to load Number Sequence that were not generated.

    4.  Now confusion part is : i need to write a code to handle my number seq on Form using NumberSeqFormHandler Class. In this case PurchEditLines  form where ProductReceipt number sequence should be generated automatically . And this form is called by PurchFormLetter_PackingSlip class.

      As PurchEditLines form is for all documentStatus (i.e Confirmation, ReceiptList, ProductReceipt) so where i need to write code for handle numberseq on this form or caller class (PurchFormLetter_PackingSlip class). Any example would be appreciated 

  • Rohin Profile Picture
    4,624 on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi,

    I have created Number seq for Product receipt but when i open form for creating Packing slip , it creates the Product receipt number but in different line as shown below:

    packingS.PNG

    I followed below steps to create number seq:

    1. Create method in PurchEditLinesForm class:

    Numseqformh.PNG

    2. Create below highlighted method in PurchEditLinesForm class:

    FomDataSource.PNG

    3. Override all above method in its child class : PurchEditLinesForm_PackingSlip:

    packingS.PNG

    4. Call above method on PurchEditLines from at datasource level :

    FormCreate.PNG

    5. Call Datasource create() in form run() method after super():

    formrun.PNG

    Please suggest what i am missing?

  • André Arnaud de Calavon Profile Picture
    299,399 Super User 2025 Season 2 on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi Visvash,

    Preferrably it would be a '_PackingSlip' class, but I don't know the details how the data on the update form is populated. I don't have the time to check all details for you. There are similar customizations done in the past, but I cannot check these solutions as these projects are finished and I don't have access to those environments.

  • Rohin Profile Picture
    4,624 on at
    RE: Generate Automatically Product Receipt Number for PO

    Alright Andre, Appreciate if any other expert would help me .

  • Verified answer
    Rohin Profile Picture
    4,624 on at
    RE: Generate Automatically Product Receipt Number for PO

    It has be resolved by myself by writing code in PurchPackingSlipJournalCreate class for generating number Seq for Product Receipt.

  • Walid Gamal Profile Picture
    on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi Visvash

    I reached to this point but i want the product receipt number when i click cancel 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??

  • Suggested answer
    Rohin Profile Picture
    4,624 on at
    RE: Generate Automatically Product Receipt Number for PO

    Hello Walid,

    I think you should have to play with number seq setup on number seq form by setting some parameters there. Might be it do your job. For more details please see below link:

    technet.microsoft.com/.../hh209531.aspx

  • Walid Gamal Profile Picture
    on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi Visvash

    I do everything you say in this thread https://community.dynamics.com/ax/f/33/t/158431?pi51736=2#responses

    but after testing it give me the following error 

    47427.Untitled.png

    another thing I note in this 

    the product receipt inserted in Vendpackingslipjour but not in purchparmtable and inventqualityordertable

    47427.Untitled.png

    can you help me in this?

    I appreciate any advice.

    Regards.

  • Community Member Profile Picture
    on at
    RE: Generate Automatically Product Receipt Number for PO

    Hi Rohit,

    Good Day,

    I have same requirement in my project. can you please send me the details that how you have done this.

    Thanks in advance.

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
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans