Hi All, Working with a client today and they want to be able to post manual check batches using the BOI. They were given a code snippet from Sage. However when they run it there is no error but it does not update the batch. It's a bit over my head and wondered if anyone could tell what the issue may be. Thanks in advance for any thoughts/advice.
SessionUtility.SetUIClass(holder.Session, "AP_ManualCheckRegister_ui");
using (dynamic post = SessionUtility.NewObject(holder, "AP_ManualCheckRegister_upd"))
{
post.nSelectBatch(BATCH_TO_POST);
post.nSetPostingDate(DateTime.Now.ToString(DATE_WITHOUT_HYPHENS_FORMAT));
post.nInitReportEngine();
post.nProcessReport("deferred");
post.nUpdateInit();
post.nUpdateMain();
post.nUpdateCleanup();
post.DropObject();
}
------------------------------
Bob Osborn
Consultant
ACI Consulting
------------------------------