Solved

Add code to an existing button

  • 17 March 2023
  • 1 reply
  • 116 views

Userlevel 4
Badge

Hello everyone,
How can I add a code(to print receipt) to this existing button called PROCESS without replacing the existing methods.
The PROCESS button  creates payment, invoices etc. on POS but it not printing the Receipt.
And I would like to add this functionality on it.

 

Kindly assist.
All responses will be highly appreciated.

icon

Best answer by Naveen Boga 17 March 2023, 11:02

View original

1 reply

Userlevel 7
Badge +17

@development93  Below is an example of Overriding a button.

After invoking the base code, you can add your logic.

 

public delegate void TestActionDelegate();
[PXOverride]
public List<InventoryUpdate> TestAction(TestActionDelegate baseMethod) 
{
var baseResult = baseMethod(); // Invoke the Base Code

// WRITE YOUR LOGIC HERE
}

 

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