|
From: <dai...@us...> - 2011-08-19 10:13:22
|
Revision: 4662
http://web-erp.svn.sourceforge.net/web-erp/?rev=4662&view=rev
Author: daintree
Date: 2011-08-19 10:13:15 +0000 (Fri, 19 Aug 2011)
Log Message:
-----------
Ricard formatting changes
Modified Paths:
--------------
trunk/PDFStockNegatives.php
trunk/doc/Change.log
Modified: trunk/PDFStockNegatives.php
===================================================================
--- trunk/PDFStockNegatives.php 2011-08-19 06:17:03 UTC (rev 4661)
+++ trunk/PDFStockNegatives.php 2011-08-19 10:13:15 UTC (rev 4662)
@@ -1,17 +1,13 @@
<?php
-/* $Revision: 1.7 $ */
/* $Id$*/
-/* $Revision: 1.8 $ */
-
-//$PageSecurity =1;
include('includes/session.inc');
include('includes/PDFStarter.php');
$pdf->addInfo('Title', _('Inventory Negatives Listing') );
$pdf->addInfo('Subject', _('Inventory Negatives Listing'));
-$FontSize=10;
+$FontSize=9;
$PageNumber=1;
$line_height=15;
@@ -47,9 +43,9 @@
do {
- $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,100,$FontSize, $NegativesRow['loccode'] . ' - ' . $NegativesRow['locationname'], 'left');
- $LeftOvers = $pdf->addTextWrap(130,$YPos,250,$FontSize,$NegativesRow['stockid'] . ' - ' .$NegativesRow['description'], 'left');
- $LeftOvers = $pdf->addTextWrap(400,$YPos,70,$FontSize,$NegativesRow['quantity'], 'right');
+ $LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,130,$FontSize, $NegativesRow['loccode'] . ' - ' . $NegativesRow['locationname'], 'left');
+ $LeftOvers = $pdf->addTextWrap(170,$YPos,350,$FontSize,$NegativesRow['stockid'] . ' - ' .$NegativesRow['description'], 'left');
+ $LeftOvers = $pdf->addTextWrap(520,$YPos,30,$FontSize,$NegativesRow['quantity'], 'right');
$pdf->line($Left_Margin, $YPos-2,$Page_Width-$Right_Margin, $YPos-2);
@@ -62,6 +58,13 @@
} while ($NegativesRow = DB_fetch_array($result));
-$pdf->OutputD($_SESSION['DatabaseName'] . '_NegativeStocks_' . date('Y-m-d') . '.pdf');//UldisN
-$pdf->__destruct(); //UldisN
+if (DB_num_rows($result)>0){
+ $pdf->OutputD($_SESSION['DatabaseName'] . '_NegativeStocks_' . date('Y-m-d') . '.pdf');
+ $pdf->__destruct();
+} else {
+ $title = _('Negative Stock Listing Problem');
+ include('includes/header.inc');
+ prnMsg(_('There are no negative stocks to list'),'info');
+ include('includes/footer.inc');
+}
?>
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2011-08-19 06:17:03 UTC (rev 4661)
+++ trunk/doc/Change.log 2011-08-19 10:13:15 UTC (rev 4662)
@@ -1,5 +1,7 @@
webERP Change Log
+19/8/11 Ricard: Fine tuning formatting PDFStockNegatives.php
+19/8/11 Carlos Urbieta Cabrera: security.png image was missing now added
14/8/11 Phil: SystemParameters.php default ProhibitPostingsBefore to 1900-01-01 when no default is currently set - can cause errors at the moment as defaults to the latest period if not previously set.
14/8/11 Phil: Stocks.php now does a journal for any work in progress on a change of category where the new category has a different GL account for WIP - and bug fixes as per Ricard
12/8/11 Phil: Backed out changes on 7/8 that prevented SelectProduct.php transaction links - now only purchase order links blocked if an item is obsolete
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|