Fatal error if i try to edit an existing invoice
  • underdogunderdog June 2008

    Hallo,
    i have the following error if i try to edit an existing invoice.
    Fatal error: Call to undefined function insertInvoiceItem() in E:\xampplite\htdocs\simpleinvoices\modules\invoices\add_invoice_item.php on line 21

    hope someone can help
    thanks in advance
    underdog

  • justinjustin June 2008

    hey underdog

    is that when adding a new item when editing an invoice

    if that that bug was picked up recently by another user - its been fixed and i'm just getting ready to do a new release

    to fix this - edit modules\invoices\add_invoice_item.php

    and change the file

    from
    if(isset($_POST['submit'])) {
    insertInvoiceItem($_POST['invoice_id'],$_POST['quantity'],$_POST['product'],$_POST['tax_id'],$_POST['description']);
    }

    to
    if(isset($_POST['submit'])) {
    invoice::insertInvoiceItem($_POST['invoice_id'],$_POST['quantity'],$_POST['product'],$_POST['tax_id'],$_POST['description']);
    }


    let us know how you go

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • underdogunderdog June 2008

    hello justin,

    thanks for your help, now adding an additional record works fine!

    great job!
    underdog

  • justinjustin June 2008

    good to hear

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • justinjustin June 2008

    fyi

    i've just released a version of simple invoices that includes this fix

    refer: http://simpleinvoices.googlecode.com/files/simpleinvoices_20080629.zip

    cheers

    Justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au
  • stueystuey June 2008

    I had this, In the end I had to stuff the record in the sql tables to pump it out the quote.

  • justinjustin June 2008

    thanks stu,

    glad to hear you could work around the bug

    cheers

    justin

    SmarterInvoices.com :: Simple Invoices hosting | Kelly.org.au :: Simple Invoices custom development | justin.kelly.org.au

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Categories