Post AR Invoice Group through code

Hi All,

E9.05.702A

We are working on a customization that will create an AR Invoice Group, create a credit memo, and then post the group.
This is a UI customization and we have almost everything working correctly accept for the actual posting of the invoice group.

We are using the InvcGrp Adapter, which has a PostInvoices method but it doesn’t appear to do anything.
The AR Invoice group in question, does not post and there is no error.
What’s odd is that if we use the BL tester and run this same method, the invoice group will post.

We could switch our code to use the BO instead of the Adapter but I was wondering if anyone had any ideas of why the Adapter might not be working as expected?

JOE ROJAS
Epicor Applications Manager
VENTION MEDICAL + DESIGN & DEVELOPMENT
Advancing Your Innovations For Health

261 Cedar Hill Street | Marlborough, MA 01752
DIRECT: 508.597.1392 x1625 | MOBILE: 774.826.9245
EMAIL: JoRojas@ventionmedical.commailto:JoRojas@ventionmedical.com | WEB: ventionmedical.com http://www.ventionmedical.com/

THINK QUALITY. BE QUALITY. GO BEYOND.

This communication may contain information that is confidential, proprietary or exempt from disclosure, and is intended only for the use of the individual and/or entity it is addressed to. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately by telephone or by return e-mail, and delete this information from your computer.

Hi

Lamentably, you must use the BO instead of the AD.

The Adapters call Business Objects’ methods, in this case, the PostInvoice method of this Adapter it is not completely programmed and it does nothing, it’s not calling the BO PostInvoice method.

The Business Layer Tester its working because its using the BO methods directly

Thanks Jaicker!

This explains a lot.

JOE ROJAS
Epicor Applications Manager
VENTION MEDICAL + DESIGN & DEVELOPMENT
DIRECT: 508.597.1392 x1625 | MOBILE: 774.826.9245

joe,

that sounds like an useful tool and I’ve had a request to do something similar here. How does your customization/interface work conceptually? Is it a scheduled thing, does it require any user input at all?

How can I use BO directly instead of the adapter?
Is there any example coding?
Thank you!

To complete this idea for anyone arriving on this thread in the future, one strategy in versions of Epicor without accessibility to the API would be to simply call an update with a temporary indicator set on the group record, such as a BPM datafield or in this case ActiveUserID set to AUTOPOST, then calling the server side InvcGrp methods in a BPM. This strategy can also be used for Cash Receipt group posting.

Hi Joe,

Would love to see that code. Currently going through the trace to get the methods for creating an invoice group and creating an AR invoice.