X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep106.php;h=ca1c84725b1b7a8bc07dabf96f6cf5331c1e92c4;hb=367dd78454169cb866bfd8b3134a73458cfa6588;hp=4aac08ab275ad665a614d3e960c9e44c51daae63;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/reporting/rep106.php b/reporting/rep106.php index 4aac08ab..ca1c8472 100644 --- a/reporting/rep106.php +++ b/reporting/rep106.php @@ -97,7 +97,7 @@ function print_salesman_list() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns, $cols2, $headers2, $aligns2); - $rep->Header(); + $rep->NewPage(); $salesman = 0; $subtotal = $total = $subprov = $provtotal = 0; @@ -105,11 +105,6 @@ function print_salesman_list() while ($myrow=db_fetch($result)) { - if ($rep->row < $rep->bottomMargin + (2 * $rep->lineHeight)) - { - $salesman = 0; - $rep->Header(); - } $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->Header(); - } } $subtotal += $amt; $subprov += $prov;