Hi,
In order to add button to existing Acumatica screen, you need following:
1. Understand what is main graph. In order to find out, just press on your keyboard Ctrl + Alt + click anywhere on the form. You'll see following picture:

2. Then in C# code, you may write something like this:
public class SOOrderEntryExt : PXGraphExtension<SOOrderEntry>
{
public static bool IsActive() => true;
public PXAction<SOOrder> TestSomeStaff;
[PXButton]
[PXUIField(DisplayName = "Test some staff")]
protected virtual IEnumerable testSomeStaff(PXAdapter adapter)
{
// Some of your logic
return adapter.Get();
}
}
And here you go, yo'ull have button ready for you. Just don't forget to add your logic