|
From: <ex...@us...> - 2016-12-08 14:24:22
|
Revision: 7702
http://sourceforge.net/p/web-erp/reponame/7702
Author: exsonqu
Date: 2016-12-08 14:24:19 +0000 (Thu, 08 Dec 2016)
Log Message:
-----------
08/12/16 Exson: Fixed the variable error in stock take pdf header in includes/PDFStockCheckPageHeader.inc. And fixed undefined noise in Payments.php. Reported by shane.
Modified Paths:
--------------
trunk/Payments.php
trunk/includes/PDFStockCheckPageHeader.inc
Modified: trunk/Payments.php
===================================================================
--- trunk/Payments.php 2016-12-08 13:40:57 UTC (rev 7701)
+++ trunk/Payments.php 2016-12-08 14:24:19 UTC (rev 7702)
@@ -838,7 +838,7 @@
while($myrow=DB_fetch_array($AccountsResults)) {
/*list the bank account names */
echo '<option ';
- if(/*isset($_POST['BankAccount']) AND */$_POST['BankAccount']==$myrow['accountcode']) {
+ if(isset($_POST['BankAccount']) AND $_POST['BankAccount']==$myrow['accountcode']) {
echo 'selected="selected" ';
}
echo 'value="', $myrow['accountcode'], '">', $myrow['bankaccountname'], ' - ', $myrow['currcode'], '</option>';
Modified: trunk/includes/PDFStockCheckPageHeader.inc
===================================================================
--- trunk/includes/PDFStockCheckPageHeader.inc 2016-12-08 13:40:57 UTC (rev 7701)
+++ trunk/includes/PDFStockCheckPageHeader.inc 2016-12-08 14:24:19 UTC (rev 7702)
@@ -12,9 +12,10 @@
$LeftOvers = $pdf->addTextWrap($Page_Width-$Right_Margin-180,$YPos,180,$FontSize,_('Printed') . ': ' . Date($_SESSION['DefaultDateFormat']) . ' ' . _('Page') . ' ' . $PageNumber);
$YPos -=15;
+sort($_POST['Categories']);
+$q = count($_POST['Categories'])-1;
+$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,550,$FontSize,_('Check Sheets for Categories between') . ' ' . $_POST['Categories'][0] . ' ' . _('and') . ' ' . $_POST['Categories'][$q] . ' ' . _('for stock at') . ' ' . $_POST['Location']);
-$LeftOvers = $pdf->addTextWrap($Left_Margin,$YPos,550,$FontSize,_('Check Sheets for Categories between') . ' ' . $_POST['FromCriteria'] . ' ' . _('and') . ' ' . $_POST['ToCriteria'] . ' ' . _('for stock at') . ' ' . $_POST['Location']);
-
$YPos -=20;
/*Draw a rectangle to put the headings in */
$BoxHeight =15;
|