<?php
/* $Revision: 1.5 $ */
/*PDF page header for outstanding GRNs report */
if ($PageNumber>1){
	$pdf->newPage();
}

$FontSize=10;
$YPos= $Page_Height-$Top_Margin;

$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,260,$FontSize,$_SESSION['CompanyRecord']['coyname']);

$YPos -=$line_height;

$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,300,$FontSize,_('Outstanding GRNs pending for invoicing'));
$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos-10,320,$FontSize,_('Suppliers between') . ' ' . $_POST['FromCriteria'] . ' ' . _('and') . ' ' . $_POST['ToCriteria']);
$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-120,$YPos,120,$FontSize,_('Printed') . ': ' . Date($_SESSION['DefaultDateFormat']) . '   ' . _('Page') . ' ' . $PageNumber);

$YPos -=(2*$line_height);

/*Draw a rectangle to put the headings in     */

$pdf->line($Left_Margin, $YPos-$line_height,$Page_Width-$Right_Margin, $YPos-$line_height);
$pdf->line($Left_Margin, $YPos-$line_height,$Left_Margin, $YPos+10);
$pdf->line($Left_Margin, $YPos+10,$Page_Width-$Right_Margin, $YPos+10);
$pdf->line($Page_Width-$Right_Margin, $YPos-$line_height,$Page_Width-$Right_Margin, $YPos+10);

/*set up the headings */
$Xpos = $Left_Margin+1;

$LeftOvers = $pdf->addTextWrap(30,$YPos,40,$FontSize-2,_('GRN'), 'centre');
$LeftOvers = $pdf->addTextWrap(70,$YPos,40,$FontSize-2,_('Order') . ' #', 'centre');
$LeftOvers = $pdf->addTextWrap(110,$YPos,200,$FontSize-2,_('Item') . ' / ' . _('Description'), 'centre');
$LeftOvers = $pdf->addTextWrap(310,$YPos,50,$FontSize-2,_('Qty Received'), 'centre');
$LeftOvers = $pdf->addTextWrap(385,$YPos,50,$FontSize-2,_('Qty Inv'), 'centre');
$LeftOvers = $pdf->addTextWrap(430,$YPos,50,$FontSize-2,_('Balance'), 'centre');
$LeftOvers = $pdf->addTextWrap(480,$YPos,50,$FontSize-2,_('Std Cost'), 'centre');
$LeftOvers = $pdf->addTextWrap(530,$YPos,50,$FontSize-2,_('Value'), 'centre');

$YPos =$YPos - (2*$line_height);

$PageNumber++;
$FontSize=8;
?>