+ Reply to Thread
Results 1 to 6 of 6

Thread: Admin Grid

  1. #1

    Admin Grid

    I've add some modifications but I don't understand how to do somethings.

    I've add a pdf exporting to the invoices, and I want that the export icon appair only if the invoices status is payed.
    I don't understand how check, in the grid construction, another column status.


    This the code :

    Code:
    Only registered members can view the code.



    Thank you in advance

  2. #2
    Was a hard problem ?

  3. #3
    I've Fixed.

  4. #4
    Share your fix if anyone in the future want the same as you.

  5. #5
    don't know how Fabrizio sorted it, but it should work if you change it as below

    Code:
    Only registered members can view the code.

  6. #6
    I have change the variable "payed" (that I've declare before) in "window" (will global variable), and check it.

    window.payed = val;
    and after

    if (window.payed == lang['ext_paid'])
    {
    out += "<a href='pdf-export.html?invoice="+data+"' target='_blank'><img src='/plugins/invoices/static/pdf.png' ext:qtip='"+lang['ext_pdf']+"' src='"+rlUrlHome+"img/blank.gif' /></a>";
    }

    but I think your solution better ;-=

+ Reply to Thread