Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accpac v6.0 Multipayment Batch

Status
Not open for further replies.

GerhardvdHeever

IS-IT--Management
Aug 18, 2011
4
ZA
Hi everyone, I am busy building an API that generally link web interface with C# and then wrapped to VB6. The user would select all the Vendors that a payment will be allocated to, each Payment has multiple invoices included. So...

1 Batch with multiple Payments with multiple Lines

How would the VB code look for looping through the Batch and build each payment with its lines.

Thanks for all the gurus at Tek-Tips, you guys rock!
 
Why reinvent the wheel?
Look at AP Transactions, Create Payment Batch.
 
I did and the whole thing falls over with a HRESULT Calling COM component, I have the PO API working. Due to information security I am not allowed to put the source code on the net. What I however did do:
1. Create Batch with description
2. Add Payment Header (loop) - insert header at end of loop
3. Add Payment Details (loop) - insert detail at end of loop
Update Batch
 
Record a macro when you perform those steps and then clean up the code.
 
Everything working, my batch update was recorded on the wrong line. Tuba2007 - some organizations have very strict policies about source code...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top