Dynacom Technologies

Accounting software you can count on
Welcome to Dynacom Technologies Sign in | Join | Help | Français
in Search

How do I get dataset for a specific invoice number

Last post 07-23-2008, 8:18 AM by mouellette. 1 replies.
Sort Posts: Previous Next
  •  07-21-2008, 10:06 AM 397

    How do I get dataset for a specific invoice number

    Is there a way to get dataset for a specific invoice number without having to loop through the top level Invoice header?  For example in a normal database query I can get data for a specific invoice using the following query. SELECT * FROM inoice_table WHERE inoiceno=1.  How do I do the same using the Dynacom API.

    Also, when I loop through the dataset for all invoices, credit memo are also being pulled.  Is this normal?  If so, how do I avoid getting credit memos when I only want invoices?

  •  07-23-2008, 8:18 AM 400 in reply to 397

    Re:How do I get dataset for a specific invoice number

    Hi,

    you can give criteria parameter when you open the dataset of your section.

    Here's an example :

        If clsheader.DataSet.OpenObject(omDefault, "InvoiId='ABC'") Then

    Invoices dataobject include credit memo, quote, order and invoice. You can add a criteria to get only the invoitype that you want. In this blog : http://community.dynacom.com/EN/blogs/dynacom_blog/archive/2006/07/11/30.aspx you have an example on how to get invoitype enum.

     


    Martin Ouellette
    Dynacom Technologies, Inc.
    www.dynacom.com
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems