Hi,
I have to execute business logic after a product receipt is generated for a purchase order. I have a purchase order in which I have multiple lines with different quantity(I have split the purchase order and I will be generating product receipt for each purchase order line separately/one by one, from the UI.
My requirement is that after product receipt is generated/posted for a purchase order line, I want to execute the complete production order cycle for the production order, referenced against this purchase order line from estimate till end (estimate, release, start, report as finished, end) through X++ code. I want to automate the production order cycle after product receipt is generated for the purchase order line against it. I want to perform these steps for all the purchase order lines one by one after the product receipt is generated/posted for each line.
I need assistance on which class/method is executed after product receipt is generated for each line and where exactly should I write my custom code to achieve the above objective. Which standard class/method I need to extend? What should be the trigger point for my code to be executed & where/how it should be written.
Thanks for your valuable insights, really appreciate it!