1 (edited by sirka 02/09/2015 04:04:22 pm)

Topic: Remove Page Number from Sales Report

Currently all reports contain page number from the 2nd page onward. However, for my invoice reporting, the page number always covers part of the invoice number.

How can I remove the page number or move the page number to the bottom right corner of the invoice?

Thanks.

2 (edited by apmuthu 02/09/2015 06:55:15 pm)

Re: Remove Page Number from Sales Report

Comment out lines 145 and 146 of reporting/includes/header2.inc (or place a copy of the file in the appropriate path in the company reporting folder):

        if ($this->pageNumber > 1)
            $this->Text($this->endLine - 35, _("Page") . ' ' . $this->pageNumber);

@joe: either a report form variable to suppress page numbers or a config variable/sys_prefs variable to be a flag for it would be nice - atleast going forward in FA v2.4.

Re: Remove Page Number from Sales Report

This has been fixed in release 2.3. Will go to 2.4 with the final merge.

The Page number has been moved down 2 lines and aligned with the above fields.

You can download the fixed file here.

/Joe

4 (edited by apmuthu 02/10/2015 06:36:32 pm)

Re: Remove Page Number from Sales Report

@joe: Thanks. Very nice alternative real solution. Attached Screenshot.

Post's attachments

Invoice_with_PageNo.png 41.8 kb, file has never been downloaded. 

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

5 (edited by apmuthu 02/11/2015 06:58:55 am)

Re: Remove Page Number from Sales Report

In the new commit, to suppress Page numbering, comment out lines 144 to 147:

//        $this->NewLine(2);
//    
//        if ($this->pageNumber > 1)
//            $this->Text($mcol + 180, _("Page") . ' ' . $this->pageNumber);