Topic: Salesman listing not adding over page break in report

Sales > Customer and sales reports > Salesman listing

If an individual salesman's list runs over to the next page, the total given for that person is of only the entries that appear on the last page.

The final total of all salesmen is correct, but the individual totals are not.

Is this a fault or have I misunderstood something?

Re: Salesman listing not adding over page break in report

This is a bug. The HG repository has been updated. Thanks for reporting.

You can remove the following lines from line 108:

        if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
        {
            $salesman = 0;
            $rep->NewPage();
        }

and from line 155 (151 if you do not count the above line) remove these lines:

            if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
            {
                $salesman = 0;
                $rep->NewPage();
            }

/Joe