Question

Override the submit action on the Project Quote screen to add custom logic


Userlevel 1
Badge

Hello Everyone,

I want to override the submit action on the Project Quote screen to add custom logic for data validation. However, the Project Quote graph and its extensions do not contain this action code for overriding.

The submit action is defined in the EPApprovalActionExtensionPersistentRequired generic class, which is an approval view in the Project Quote graph.

How can I override this action to add my custom logic?

 


Thanks


2 replies

Userlevel 1

@rajeshvemunoori31 I see this in the PMQuoteMaint file with the signature:

    public class PMQuoteApproval
        : EPApprovalActionExtensionPersistent<PMQuote, PMQuote.approved, PMQuote.rejected, PMSetup.quoteApprovalMapID, PMSetup.quoteApprovalNotificationID>
    {
        [PXUIField(DisplayName = PX.Objects.EP.Messages.Submit)]
        [PXButton(Category = Messages.Processing, DisplayOnMainToolbar = true)]
        public override IEnumerable Submit(PXAdapter adapter)

I believe this is what you are hoping to override

Userlevel 1
Badge

@josiahl64 
I’m using 22R2(22.211) version and the ‘PMQuoteApproval’ class is not available in this verison. 

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved