Simple Invoices logo
    • CommentAuthorjustin
    • CommentTimeApr 11th 2008 edited
     permalink
    Hi Guys,

    Any jQuery freaks out here?

    Currently in the process of jQuery-ifying the invoice creation and editing pages. I’ve already got delete line item (in edit page), edit unit_price based on selected product in invoice creation end edit pages and trying to get add new line item in invoice creation page working.

    My plan for making this work is:
    Get the last item TR, clone it, alter (+1 to it) all references to the line number (in qty and product field), add it after the last line item
    - but i'm no jquery guru - if you can get the desired result some other way its all good

    Note:
    The invoice line item section looks similar to
    [code]<tr id=line1>
    <td><input name=”quantity1”></td>
    <td><select name=”product1”>..product list..</td>
    </tr>

    [/code]

    If anyone can help me out with this would be greatly appreciated

    Cheers

    Justin