Simple Invoices logo
    • CommentAuthorsgrayban
    • CommentTimeAug 6th 2008
     permalink
    PHP Fatal error: Class 'invoice' not found in modules/invoices/add_invoice_item.php on line 21


    Line 21 is.....
    if(isset($_POST['submit'])) {
    invoice::insertInvoiceItem($_POST['invoice_id'],$_POST['quantity'],$_POST['product'],$_POST['tax_id'],$_POST['description']);
    }
    • CommentAuthorjustin
    • CommentTimeAug 6th 2008
     permalink
    hey scott

    are you using the 2008 06 29 release?

    cheers

    justin
    • CommentAuthorsgrayban
    • CommentTimeAug 7th 2008
     permalink
    Simple Invoices:
    Version: 20070303 stable

    The last version screwed everything up on my end so I tried to restore the older version -- remember that ?
    • CommentAuthorjustin
    • CommentTimeAug 7th 2008 edited
     permalink
    yep - i remember : http://simpleinvoices.org/forum/discussion/561/

    there were some changes to the includes/sql_queries.php to add in very simple classes (which will be base of future work to make the base of Simple Invoices better/cleaner/saner :) ) - which your sql_queries.php file wont have as its from the older release

    solution: edit your current sql_queries.php to be the same as the file from the 20080629 release

    also refer: http://simpleinvoices.org/forum/discussion/557/fatal-error-if-i-try-to-edit-an-existing-invoice

    note: an extension system was added into the last release which is still work in progress (but pretty much done)
    - basically instead of customising the normal Simple Invoices files, you can create a small extension to do your stuff - then enable it - and you should avoid most of the issues involved in upgrading when you have customistions
    - refer wiki for more info on extensions

    cheers

    justin
    • CommentAuthorsgrayban
    • CommentTimeAug 7th 2008
     permalink
    thanks
    • CommentAuthorjustin
    • CommentTimeAug 7th 2008
     permalink
    no worries scott

    let us know how you go

    cheers

    justin