We make accounting easy. So you can focus on your business.
Simply Accounting Support Community
Search in

Create an invoice programatically

Last post 09-29-2008 8:21 AM by pacarrier. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-26-2008 4:15 PM

    • nexus
    • Not Ranked
    • Joined on 09-26-2008
    • Posts 1

    Create an invoice programatically

    Hi, 

     I'm trying to create an invoice programatically.  I'm a little confused as to how the items in the tSalOrdr table relate to the tCusTr table.  As far as I can tell Sales Orders and Sales Invoices should have nothing to with one another... yet when I look in the tSalOrdr table (and corresponding line items) it seems as if every line item in the invoice is duplicated in a sales order.

     When creating an invoice do I have to touch tSalOrdr at all?

     Thanks!

  • 09-26-2008 5:40 PM In reply to

    Re: Create an invoice programatically

    Hi there:  You do not need to do anything with Sales Order if you do not use a Sales Order system before actually generating a Sales Invoice.    Rita

  • 09-26-2008 6:58 PM In reply to

    Re: Create an invoice programatically

    If you dig a little deeper you will find that it’s not just the Sales Order that is interconnected with Sales Invoice but also the Sales Quote; in fact a Sales Quote, after generated, can be turned into a Sales Order, which can be turned into a Sales Invoice.

  • 09-29-2008 8:21 AM In reply to

    • pacarrier
    • Top 10 Contributor
      Male
    • Joined on 09-17-2007
    • Montreal (Quebec)
    • Posts 140

    Re: Create an invoice programatically

    The tSalOrdr table (and related table) are for sales orders and quotes. You do not have to create a sales order before creating an invoice. If all you need in the end is the invoice, then forget about these table.

    If you need assistance with the database, feel free to contact me off forum and we can work something out.

Page 1 of 1 (4 items)