Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Sage MAS Partner
judah
Posts: 7
Registered: 05-11-2010
0

SO Invoice: Seting a specific batch number fails

Version: 4.4

I am adding SO Invoices. Everything works well except when I want to use a specific batch number. For instance, if I do the following, I get the next available batch and everything works:

 

IF o.nBatchEnabled = 1 Then
 BatchNo = ""
 o.nSelectBatch(BatchNo)
End If

See here for more complete listing.

 

However, the following does not work:

 

IF o.nBatchEnabled = 1 Then
 BatchNo = "A46"
 o.nSelectBatch(BatchNo)
End If

BOI doesn't register any errors, and the records show in the both SO_InvoiceHeader and SO_InvoiceDetail with the correct batch number in the SO_InvoiceHeader.BatchNo field. However, in Invoice Data Entry, the batch totals are all 0 and no invoices are available under the batch.

 

Is there an additional step required? 

Does anyone know in which data file the Comment and Private Batch values from the Batch screen are stored?

 

Thanks for your help,

 

Judah

 

 

Sage MAS Partner
Chen
Posts: 2
Registered: 11-12-2008
0

Re: SO Invoice: Seting a specific batch number fails

Hey Judah

  I'm not sure about your specific Batch Number question, but the information about the batch that you're looking for is in GL_CompanyActiveBatch.M4T

Patrick Chen

Director of Engineering
The Macabe Associates, Inc.
6031 California Ave Ste B
Seattle, WA 98136
Email: Patrick@macabe.com
Web: www.macabe.com
Sage MAS Partner
JKatulka
Posts: 213
Registered: 07-19-2010

Re: SO Invoice: Seting a specific batch number fails

If the BatchNo you are trying to assign does not yet exist, you will want to use:

 

o.nSelectNewBatch("A46", "N", "My batch")

 

where "N" is the private flag(Y/N) and "My batch" is the batch comment.

Justin