Topic: Modify the Invoice Table Content

Hello All,

Kudos to our developers. You guys are great.

I needed to modify the Invoice layout. I wanted to remove the Stock code from the invoice printout so that I am left with Item description, Quantity, Unit, Price & Total while  Code and discount is removed.

Can someone show me how to do this.

Thanks.

Popsicles12.

Re: Modify the Invoice Table Content

Just blank the headings and displays in the rep107.php file.

Re: Modify the Invoice Table Content

Thanks Apmuthu for your timely response.

I dont get what you mean by just blank the heading.

I needed to remove some headings and also their contents in the table. Please kindly explain.

Thanks so much

Popsicles12

Re: Modify the Invoice Table Content

You will find an array of column widths and heading names and variables from some sql that you can comment out or delete.

Re: Modify the Invoice Table Content

Hello Apmuthu,
Thanks for your timely response. Please can you let me know the files I am supposed to edit and the lines to comment out?

Thanks in advance

Popsicles12

Re: Modify the Invoice Table Content

only reporting/rep107.php lines 86-90:

    //-------------code-Descr-Qty--uom--tax--prc--Disc-Tot--//
    $cols = array(4, 60, 225, 300, 325, 385, 450, 515);

    // $headers in doctext.inc
    $aligns = array('left',    'left',    'right', 'center', 'right', 'right', 'right');

lines 192-199

                if ($Net != 0.0 || !is_service($myrow2['mb_flag']) || !$SysPrefs->no_zero_lines_amount())
                {
                    $rep->TextCol($c++, $c,    $DisplayQty, -2);
                    $rep->TextCol($c++, $c,    $myrow2['units'], -2);
                    $rep->TextCol($c++, $c,    $DisplayPrice, -2);
                    $rep->TextCol($c++, $c,    $DisplayDiscount, -2);
                    $rep->TextCol($c++, $c,    $DisplayNet, -2);
                }