Salesman listing not adding over page break in report.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 26 Nov 2011 21:57:27 +0000 (22:57 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 26 Nov 2011 21:57:27 +0000 (22:57 +0100)
reporting/rep105.php
reporting/rep106.php

index ad6e6ce4628f9b8d270c949b20613b1c2366f59f..70c8c0d0a203cac7bb1aaf90d28ea15033ef9dfe 100644 (file)
@@ -132,11 +132,6 @@ function print_order_status_list()
 
        while ($myrow=db_fetch($result))
        {
-               if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
-               {
-                       $orderno = 0;
-                       $rep->NewPage();
-               }
                $rep->NewLine(0, 2, false, $orderno);
                if ($orderno != $myrow['order_no'])
                {
@@ -168,11 +163,6 @@ function print_order_status_list()
                        $rep->Font();
                }
                $rep->NewLine();
-               if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
-               {
-                       $orderno = 0;
-                       $rep->NewPage();
-               }
        }
        $rep->Line($rep->row);
        $rep->End();
index 42a02083828a5930dcb30c8872d7beb66ea119dd..ca1c84725b1b7a8bc07dabf96f6cf5331c1e92c4 100644 (file)
@@ -105,11 +105,6 @@ function print_salesman_list()
 
        while ($myrow=db_fetch($result))
        {
-               if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
-               {
-                       $salesman = 0;
-                       $rep->NewPage();
-               }
                $rep->NewLine(0, 2, false, $salesman);
                if ($salesman != $myrow['salesman_code'])
                {
@@ -152,11 +147,6 @@ function print_salesman_list()
                        $rep->AmountCol(5, 6, $amt, $dec);
                        $rep->AmountCol(6, 7, $prov, $dec);
                        $rep->NewLine();
-                       if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight))
-                       {
-                               $salesman = 0;
-                               $rep->NewPage();
-                       }
                }
                $subtotal += $amt;
                $subprov += $prov;