somebody can you help me? what is the process for transferring of signatory thank you
Best answer by Yuriy Zaletskyy
View originalsomebody can you help me? what is the process for transferring of signatory thank you
Best answer by Yuriy Zaletskyy
View originalthank you so much
In Acumatica, you can transfer a signatory to the Request for Payment form via C# by using the following steps:
Here is an example of C# code that shows how to create a custom button, event handler and custom field on the APPaymentRequest form, and assign the selected signatory to the custom field:
using PX.Data;
using PX.Objects.AP;
namespace AcuPowerOrYourNameSpace
{
public class APPaymentRequest_Extension : PXGraphExtension<APPaymentRequest>
{
//Custom field to hold the signatory information
public abstract class usrSignatory : IBqlField { }
[PXString(250, IsUnicode = true)]
[PXUIField(DisplayName = "Signatory")]
public string UsrSignatory { get; set; }
//Custom button to open the signatory selection form
public PXAction<APPaymentRequest> selectSignatory;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Select Signatory")]
protected void SelectSignatory()
{
//Open the signatory selection form or pop-up window
}
//Event handler for the custom button's click event
protected void APPaymentRequest_RowSelected(PXCache cache, PXRowSelectedEventArgs e)
{
if (e.Row == null) return;
APPaymentRequest row = (APPaymentRequest)e.Row;
APPaymentRequest_Extension ext = cache.GetExtension<APPaymentRequest_Extension>(row);
//Retrieve the selected signatory information
ext.UsrSignatory = //Retrieve the selected signatory information here;
}
}
}
It is important to keep in mind that the above code is an example and may require modification to match your specific requirements. Additionally, you will have to create the form or pop-up window where the user can select the signatory.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.