From: <tim...@us...> - 2010-03-09 11:10:43
|
Revision: 3375 http://web-erp.svn.sourceforge.net/web-erp/?rev=3375&view=rev Author: tim_schofield Date: 2010-03-09 11:10:37 +0000 (Tue, 09 Mar 2010) Log Message: ----------- Tim: PDFStockLocTransfer.php - Add a reprint option Modified Paths: -------------- trunk/PDFStockLocTransfer.php trunk/doc/Change.log.html Modified: trunk/PDFStockLocTransfer.php =================================================================== --- trunk/PDFStockLocTransfer.php 2010-03-09 06:28:37 UTC (rev 3374) +++ trunk/PDFStockLocTransfer.php 2010-03-09 11:10:37 UTC (rev 3375) @@ -5,26 +5,35 @@ /* $Revision: 1.12 $ */ $PageSecurity =1; + +$title = _('Stock Location Transfer Docket Error'); include('includes/session.inc'); include('includes/PDFStarter.php'); -$pdf->addInfo('Title', _('Inventory Location Transfer BOL') ); -$pdf->addInfo('Subject', _('Inventory Location Transfer BOL') . ' # ' . $_GET['TransferNo']); -$FontSize=10; -$PageNumber=1; -$line_height=30; -$title = _('Stock Location Transfer Docket Error'); +if (isset($_POST['TransferNo'])) { + $_GET['TransferNo']=$_POST['TransferNo']; +} if (!isset($_GET['TransferNo'])){ include ('includes/header.inc'); - echo '<p>'; - prnMsg( _('This page must be called with a location transfer reference number'),'error' ); + echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/maintenance.png" title="' . _('Search') . + '" alt="">' . ' ' . _('Reprint transfer docket').'<br>'; + echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '?' . SID . '">'; + echo '<table><tr><td>'._('Transfer docket to reprint').'</td>'; + echo '<td><input type=text class=number size=10 name="TransferNo"></td></tr></table>'; + echo '<div class="centre"><input type=submit Name="Print" Value="' . _('Print') .'">'; include ('includes/footer.inc'); exit; } +$pdf->addInfo('Title', _('Inventory Location Transfer BOL') ); +$pdf->addInfo('Subject', _('Inventory Location Transfer BOL') . ' # ' . $_GET['TransferNo']); +$FontSize=10; +$PageNumber=1; +$line_height=30; + $ErrMsg = _('An error occurred retrieving the items on the transfer'). '.' . '<p>'. _('This page must be called with a location transfer reference number').'.'; $DbgMsg = _('The SQL that failed while retrieving the items on the transfer was'); $sql = "SELECT loctransfers.reference, @@ -99,4 +108,4 @@ */ $pdf->OutputD($_SESSION['DatabaseName'] . '_StockLocTrfShipment_' . date('Y-m-d') . '.pdf');//UldisN $pdf->__destruct(); //UldisN -?> +?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-03-09 06:28:37 UTC (rev 3374) +++ trunk/doc/Change.log.html 2010-03-09 11:10:37 UTC (rev 3375) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>09/03/10 Tim: PDFStockLocTransfer.php - Add a reprint option</p> <p>09/03/10 Tim: Updates to Petty Cash Management Report and include new header file</p> <p>08/03/10 Tim: Small changes to Petty Cash module</p> <p>08/03/10 Simon Peter Otandekar: FixedAssetRegister.php Include totals and sub-totals</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |