Hi,
I'm using the code (in a Job) given below to reverse customer transaction:
static void ReverseCustomerEntry(Args _args)
{
TransactionReversal_Cust transactionReversal = new TransactionReversal_Cust();
Args args = new Args();
CustTrans custTrans = CustTrans::find(5642222344);
;
args.record(custTrans);
transactionReversal.parmReversalDate(systemdateget());
transactionReversal.reversal(args);
}
But when I run this code it pops up the dialog to enter date, reason code, reason.
What is the best approach to disable the dialog. Shall I make a copy of the class
TransactionReversal_Cust
and then comment out .prompt() method?
*This post is locked for comments
I have the same question (0)