Skip to main content
Answer

Trying to add Project Drop-Ship as an option to create a PO from the Requisitions screen

  • July 30, 2025
  • 1 reply
  • 63 views

Joe Schmucker
Captain II
Forum|alt.badge.img+3

On the Requisitions screen, you can select a PO Type and create a PO from the requisition.  I want to add the same Project Drop-Ship option that is available on the Purchase Orders screen to the Requisitions screen.  I’ve added the Project Drop-Ship option to the DDL.  When I go to Create Orders, it fails (obviously) because there is no project ID on a requisition.  I added UsrProjectID to the RQRequisition table.  I clicked Create Orders after selecting my custom DDL item and it looks like the code is “trying” to do what I want, but the Project ID is not provided to action.  My thought is that I can override the Create Orders to provide the custom Project ID field I added.

When I look at the code for Create Orders, all the methods that do the work to create a PO are protected.  It looks like I would have to practically rewrite the entire code base just to do what I am trying to do.

I think I can do an override on a protected method, but before I dive into copying 1000 lines of code, I’m wondering if that is the only option I have.

I am hoping that by some miracle, someone else has done something similar and can give me advice.

Thanks in advance.

Best answer by Django

Half way down this page is a section called Overriding Protected Functions and that will allow you to call a protected function.

https://www.acumatica.com/blog/accessing-or-overriding-protected-methods-in-graph-extensions-using-pxprotectedaccess/

Sometimes I look to modify the logic of the document being created instead of modifying the logic of the code that is creating the document. I wanted to create kits with a default setup of components when a matrix item was created. It was easier to modify the InventoryItemMaint logic than to dig through the Matrix item logic.

1 reply

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • July 31, 2025

Half way down this page is a section called Overriding Protected Functions and that will allow you to call a protected function.

https://www.acumatica.com/blog/accessing-or-overriding-protected-methods-in-graph-extensions-using-pxprotectedaccess/

Sometimes I look to modify the logic of the document being created instead of modifying the logic of the code that is creating the document. I wanted to create kits with a default setup of components when a matrix item was created. It was easier to modify the InventoryItemMaint logic than to dig through the Matrix item logic.