X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep409.php;h=24d2cd82deb3f191c46e194677dbe268e85a4a5b;hb=a0a0a0e1318042034fe5652caa69b034200c8a90;hp=07e76f38486a8bf5bd5e2b90290931c0207923a8;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/reporting/rep409.php b/reporting/rep409.php index 07e76f38..24d2cd82 100644 --- a/reporting/rep409.php +++ b/reporting/rep409.php @@ -63,6 +63,7 @@ function print_workorders() if ($email == 0) { $rep = new FrontReport(_('WORK ORDER'), "WorkOrderBulk", user_pagesize()); + $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->Info($params, $cols, null, $aligns); @@ -77,6 +78,7 @@ function print_workorders() if ($email == 1) { $rep = new FrontReport("", "", user_pagesize()); + $rep->SetHeaderType('Header2'); $rep->currency = $cur; $rep->Font(); $rep->title = _('WORK ORDER'); @@ -85,7 +87,8 @@ function print_workorders() } else $rep->title = _('WORK ORDER'); - $rep->Header2($myrow, null, null, '', 26); + $rep->SetCommonData($myrow, null, null, '', 26); + $rep->NewPage(); $result = get_wo_requirements($i); $rep->TextCol(0, 5,_("Work Order Requirements"), -2); @@ -126,12 +129,12 @@ function print_workorders() $rep->AmountCol(6, 7, $myrow2['units_issued'], $dec, -2); $rep->NewLine(1); if ($rep->row < $rep->bottomMargin + (15 * $rep->lineHeight)) - $rep->Header2($myrow, null, null,'',26); + $rep->NewPage(); } $rep->NewLine(1); $rep->TextCol(0, 5," *** = "._("Insufficient stock"), -2); - $comments = get_comments(26, $i); + $comments = get_comments(ST_WORKORDER, $i); if ($comments && db_num_rows($comments)) { $rep->NewLine();