Skip to Content
author's profile photo Former Member
Former Member

How to obtain the default serie for a document

Hi,

Anybody know how can obtain the default serie for a document throw a query??

I can`t see the relation between the ONNM and the NNM1 tables because the 'dfltseries' field of the ONNM not corresponding with the 'Series' field of the NNM1.

For example for an A/P Invoice

Thanks!!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 17, 2009 at 02:20 PM

    Hi Mariano,

    According to the SDK Help file, you need to query the NNM2 table

    Series Default

    Table name: NNM2

    ObjectCode UserSign Series DocSubType

    So, the query to retrieve the A/P default series for the manager user would be:

    SELECT T0.Series FROM [dbo].[nnm2] T0 WHERE T0.ObjectCode='13' AND T0.UserSign = 1
    

    From the SDK you can replace the T0.UserSign = 1 for T0.UserSign = oCompany.UserSignature to retrieve the default series for the current user...

    Regards,

    Vítor Vieira

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.