public server static void main(Args args)
FormDataSource recordDataSource;
Common record;
if(args && args.record())
{
record = args.record();
}
{
recordDataSource = record.dataSource();
}
{
poAutoPost.run_CreateSalesReturn(args);
}
else if(args.parm() == 'SalesReturnAccept') // SO Accept
{
poAutoPost.run_PostPurchReturn(args);
}
else if(args.parm() == 'SalesReturnReject') // SO Reject
{
poAutoPost.run_CancelPOAndSOnew(args);
}
else // 1) GRN (InterCompany SO to PO) ; 2) Called from inside SO Accept above
{
poAutoPost.run(args);
}
if(recordDataSource)
{
recordDataSource.reRead();
recordDataSource.reFresh();
recordDataSource.active();
}
}