Topic: Removing Print / Close and bottom URL from Journal Voucher

hey,

can you please help me how can i remove Print / Close and bottom URL from Journal Voucher while printing because this thing is not good for use and its showing URL to users too!

please let me know how can i do that?


Regards

Re: Removing Print / Close and bottom URL from Journal Voucher

Checkout the function hyperlink_back() in includes/ui/ui_controls.inc, specifically the echo lines 213 and 215:

    if ($no_menu)
    {
        echo "<td align=center><a href='javascript:window.print();'>"._("Print")."</a></td>\n";
    }    
    echo "<td align=center><a href='javascript:goBack(".($final ? '-2' : '').");'>".($no_menu ? _("Close") : _("Back"))."</a></td>\n";

If you want to remove the Print/Close in all pages, then make the above to be:

    if ($no_menu)
    {
        echo "<td align=center>&nbsp;</td>\n";
    }    
    echo "<td align=center><a href='javascript:goBack(".($final ? '-2' : '').");'>".($no_menu ? "" : _("Back"))."</a></td>\n";

Re: Removing Print / Close and bottom URL from Journal Voucher

hey, thanks

well i have checked this one its remove the link of PRINT & CLOSE well its ok we can use as CLT + P but when we use CLT + P the page is appear and in this page the URL is showing at the bottom of the page like

gl/view/....tran-no

and second it is possible the PRINT and CLOSE like is shown at the page and when we click on PRINT button these things is not shown at this page-> see screenshot

LINK IS : https://ibb.co/5kmm0rB

regards

Post's attachments

GLTransDetails_Footer.png 21.9 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Removing Print / Close and bottom URL from Journal Voucher

CTRL-P is a browser attached command and has nothing to do with FA.
Assign CTRL-P to something in the browser shortcuts customisation if you want it browser wide for all sites.

The popup page comes from gl/view/gl_trans_view.php.

Comment out the last php line in the above file (line 160).
Output Attached.

Post's attachments

GLJV_NoFooter.png 18.6 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

Re: Removing Print / Close and bottom URL from Journal Voucher

yes this thing is same as above but different is apply to GL TRANSACTION

well, i think due to browser command we can hide the PRINT / CLOSE and BOTTOM LINK from print page after we click the PRINT LINK...

or any solution we can do it?