[Weberp-svn] SF.net SVN: weberp:[4634] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-03-01 11:13:28
|
Revision: 4634 http://weberp.svn.sourceforge.net/weberp/?rev=4634&view=rev Author: tim_schofield Date: 2011-03-01 11:13:22 +0000 (Tue, 01 Mar 2011) Log Message: ----------- Add headings to stock check sheet if quantities are not shown Modified Paths: -------------- trunk/StockCheck.php trunk/includes/PDFStockCheckPageHeader.inc Modified: trunk/StockCheck.php =================================================================== --- trunk/StockCheck.php 2011-03-01 06:05:45 UTC (rev 4633) +++ trunk/StockCheck.php 2011-03-01 11:13:22 UTC (rev 4634) @@ -175,7 +175,7 @@ $FontSize=10; $YPos -=$line_height; - if ($_POST['ShowInfo']==true){ + if (isset($_POST['ShowInfo']) and $_POST['ShowInfo']==true){ $SQL = "SELECT SUM(salesorderdetails.quantity - salesorderdetails.qtyinvoiced) AS qtydemand FROM salesorderdetails, Modified: trunk/includes/PDFStockCheckPageHeader.inc =================================================================== --- trunk/includes/PDFStockCheckPageHeader.inc 2011-03-01 06:05:45 UTC (rev 4633) +++ trunk/includes/PDFStockCheckPageHeader.inc 2011-03-01 11:13:22 UTC (rev 4634) @@ -28,16 +28,22 @@ $Xpos = $Left_Margin+1; /*draw vertical lines */ -$pdf->line(350, $YPos-$line_height,350, $Bottom_Margin+24); -$pdf->line(415, $YPos-$line_height,415, $Bottom_Margin+24); -$pdf->line(475, $YPos-$line_height,475, $Bottom_Margin+24); +$pdf->line(370, $YPos+$BoxHeight,370, $Bottom_Margin+24); $LeftOvers = $pdf->addTextWrap($Xpos,$YPos,300-$Left_Margin,$FontSize,_('Item'), 'centre'); -if ($_POST['ShowInfo']==true){ +if (isset($_POST['ShowInfo']) and $_POST['ShowInfo']==true){ + /*draw vertical lines */ + $pdf->line(415, $YPos-$line_height,415, $Bottom_Margin+24); + $pdf->line(475, $YPos-$line_height,475, $Bottom_Margin+24); $LeftOvers = $pdf->addTextWrap(341,$YPos,60,$FontSize,_('QOH'), 'centre'); $LeftOvers = $pdf->addTextWrap(341+61,$YPos,80,$FontSize,_('Cust Ords'), 'centre'); $LeftOvers = $pdf->addTextWrap(341+61+61,$YPos,80,$FontSize,_('Available'), 'centre'); - } +} else { + /*draw vertical lines */ + $pdf->line(435, $YPos+$BoxHeight,435, $Bottom_Margin+24); + $LeftOvers = $pdf->addTextWrap(371,$YPos,60,$FontSize,_('Quantity'), 'centre'); + $LeftOvers = $pdf->addTextWrap(341+61+61,$YPos,80,$FontSize,_('Remarks'), 'centre'); +} $FontSize=10; $YPos -=($line_height); ?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |