Simple Invoices logo
    • CommentAuthorunderdog
    • CommentTimeJun 26th 2008
     permalink
    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
    • CommentAuthorjustin
    • CommentTimeJun 26th 2008
     permalink
    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
    • CommentAuthorunderdog
    • CommentTimeJun 26th 2008
     permalink
    hello justin,

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

    great job!
    underdog
    • CommentAuthorjustin
    • CommentTimeJun 26th 2008
     permalink
    good to hear

    cheers

    justin
    • CommentAuthorjustin
    • CommentTimeJun 29th 2008
     permalink
    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
    • CommentAuthorstuey
    • CommentTimeJun 29th 2008
     permalink
    I had this, In the end I had to stuff the record in the sql tables to pump it out the quote.
    • CommentAuthorjustin
    • CommentTimeJun 29th 2008
     permalink
    thanks stu,

    glad to hear you could work around the bug

    cheers

    justin