About CustTrans' ActionPane

I would like to place a button similar to CustTrans’ Action Pane on the Customize screen.
These are SettleTransButton and UndoSettleButton.

I have made the properties similar to CustTrans, but I am getting an error.

Errors that occur when clicking on these buttons placed on the customize screen.

SettleTransButton error: “Stack trace: The company does not exist”.
UndoSettleButton error: “Function CustOpenTransReverse has been incorrectly called”.

How can I fix this?

First of all, look at the code raising the error to understand why it happens. As you see, you’re unable to fix it without understanding the problem.

If you need more help from us, share your findings about the code here.