|
From: <dai...@us...> - 2011-06-05 23:46:09
|
Revision: 4588
http://web-erp.svn.sourceforge.net/web-erp/?rev=4588&view=rev
Author: daintree
Date: 2011-06-05 23:46:02 +0000 (Sun, 05 Jun 2011)
Log Message:
-----------
stock adjustment controlled items and completion of POrder items
Modified Paths:
--------------
trunk/BankMatching.php
trunk/GoodsReceived.php
trunk/PO_Items.php
trunk/StockAdjustments.php
trunk/StockAdjustmentsControlled.php
trunk/doc/Change.log
trunk/includes/Add_SerialItems.php
trunk/includes/InputSerialItemsExisting.php
trunk/includes/InputSerialItemsKeyed.php
Modified: trunk/BankMatching.php
===================================================================
--- trunk/BankMatching.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/BankMatching.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -243,7 +243,7 @@
$Outstanding = $myrow['amt']- $myrow['amountcleared'];
if (ABS($Outstanding)<0.009){ /*the payment is cleared dont show the check box*/
- pprintf('<tr bgcolor="#CCCEEE">
+ printf('<tr bgcolor="#CCCEEE">
<td>%s</td>
<td>%s</td>
<td class=number>%s</td>
Modified: trunk/GoodsReceived.php
===================================================================
--- trunk/GoodsReceived.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/GoodsReceived.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -140,16 +140,16 @@
//Now Display LineItem
- echo '<td>' . $LnItm->StockID . '</td>';
- echo '<td>' . $LnItm->ItemDescription . '</td>';
- echo '<td class=number>' . $DisplaySupplierQtyOrd . '</td>';
- echo '<td>' . $LnItm->SuppliersUnit . '</td>';
- echo '<td class=number>' . $DisplaySupplierQtyRec . '</td>';
- echo '<td class=number>' . $LnItm->ConversionFactor . '</td>';
- echo '<td class=number>' . $DisplayQtyOrd . '</td>';
- echo '<td>' . $LnItm->Units . '</td>';
- echo '<td class=number>' . $DisplayQtyRec . '</td>';
- echo '<td class=number>';
+ echo '<td>' . $LnItm->StockID . '</td>
+ <td>' . $LnItm->ItemDescription . '</td>
+ <td class=number>' . $DisplaySupplierQtyOrd . '</td>
+ <td>' . $LnItm->SuppliersUnit . '</td>
+ <td class=number>' . $DisplaySupplierQtyRec . '</td>
+ <td class=number>' . $LnItm->ConversionFactor . '</td>
+ <td class=number>' . $DisplayQtyOrd . '</td>
+ <td>' . $LnItm->Units . '</td>
+ <td class=number>' . $DisplayQtyRec . '</td>
+ <td class=number>';
if ($LnItm->Controlled == 1) {
@@ -346,8 +346,8 @@
if ($OrderLine->StockID!='') { //Its a stock item line
/*Need to get the current standard cost as it is now so we can process GL jorunals later*/
$SQL = "SELECT materialcost + labourcost + overheadcost as stdcost
- FROM stockmaster
- WHERE stockid='" . $OrderLine->StockID . "'";
+ FROM stockmaster
+ WHERE stockid='" . $OrderLine->StockID . "'";
$ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The standard cost of the item being received cannot be retrieved because');
$DbgMsg = _('The following SQL to retrieve the standard cost was used');
$Result = DB_query($SQL,$db,$ErrMsg,$DbgMsg,true);
@@ -377,11 +377,10 @@
/*Now the SQL to do the update to the PurchOrderDetails */
if ($OrderLine->ReceiveQty >= ($OrderLine->Quantity - $OrderLine->QtyReceived)){
- $SQL = "UPDATE purchorderdetails SET
- quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "',
- stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "',
- completed=1
- WHERE podetailitem = '" . $OrderLine->PODetailRec . "'";
+ $SQL = "UPDATE purchorderdetails SET quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "',
+ stdcostunit='" . $_SESSION['PO'.$identifier]->LineItems[$OrderLine->LineNo]->StandardCost . "',
+ completed=1
+ WHERE podetailitem = '" . $OrderLine->PODetailRec . "'";
} else {
$SQL = "UPDATE purchorderdetails SET
quantityrecd = quantityrecd + '" . $OrderLine->ReceiveQty . "',
Modified: trunk/PO_Items.php
===================================================================
--- trunk/PO_Items.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/PO_Items.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -42,7 +42,7 @@
if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))){
prnMsg(_('The quantity in the supplier units is expected to be numeric. Please re-enter as a number'),'error');
} else { //ok to update the PO object variables
- $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor));
+ $_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->Quantity=round(doubleval(str_replace($locale_info['thousands_sep'],'',$_POST['SuppQty'.$POLine->LineNo]))*doubleval(str_replace($locale_info['thousands_sep'],'',$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->ConversionFactor)),$_SESSION['PO'.$identifier]->LineItems[$POLine->LineNo]->DecimalPlaces);
}
if (!is_numeric(str_replace($locale_info['thousands_sep'],'',$_POST['SuppPrice'.$POLine->LineNo]))){
prnMsg(_('The supplier price is expected to be numeric. Please re-enter as a number'),'error');
Modified: trunk/StockAdjustments.php
===================================================================
--- trunk/StockAdjustments.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/StockAdjustments.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -24,7 +24,12 @@
if (isset($_GET['StockID'])){
$StockID = trim(strtoupper($_GET['StockID']));
$_SESSION['Adjustment']->StockID = trim(strtoupper($StockID));
- $result = DB_query("SELECT description, controlled, serialised, decimalplaces FROM stockmaster WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db);
+ $result = DB_query("SELECT description,
+ controlled,
+ serialised,
+ decimalplaces
+ FROM stockmaster
+ WHERE stockid='" . $_SESSION['Adjustment']->StockID . "'",$db);
$myrow = DB_fetch_array($result);
$_SESSION['Adjustment']->ItemDescription = $myrow['description'];
$_SESSION['Adjustment']->Controlled = $myrow['controlled'];
@@ -59,18 +64,24 @@
'" alt="" />' . ' ' . _('Select Item to Adjust') . '</p>';
if (strlen($_POST['StockText'])>0) {
- $sql="SELECT stockid, description from stockmaster where description like '%" . $_POST['StockText'] ."%'";
+ $sql="SELECT stockid, description FROM stockmaster WHERE description " . LIKE . " '%" . $_POST['StockText'] ."%'";
} else {
- $sql="SELECT stockid, description from stockmaster where stockid like '%" . $_POST['StockCode'] ."%'";
+ $sql="SELECT stockid, description FROM stockmaster WHERE stockid " . LIKE . " '%" . $_POST['StockCode'] ."%'";
}
$ErrMsg=_('The stock information cannot be retrieved because');
$DbgMsg=_('The SQL to get the stock description was');
$result = DB_query($sql,$db,$ErrMsg,$DbgMsg);
- echo '<table class=selection><tr><th>'._('Stock Code').'</th><th>'._('Stock Description').'</th></tr>';
+ echo '<table class="selection">
+ <tr>
+ <th>'._('Stock Code').'</th>
+ <th>'._('Stock Description').'</th>
+ </tr>';
while ($myrow = DB_fetch_row($result)) {
- echo '<tr><td>'.$myrow[0].'</td>
+ echo '<tr>
+ <td>'.$myrow[0].'</td>
<td>'.$myrow[1].'</td>
- <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a></tr>';
+ <td><a href="StockAdjustments.php?StockID='.$myrow[0].'&Description='.$myrow[1].'">'._('Adjust').'</a>
+ </tr>';
}
echo '</table>';
include('includes/footer.inc');
Modified: trunk/StockAdjustmentsControlled.php
===================================================================
--- trunk/StockAdjustmentsControlled.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/StockAdjustmentsControlled.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -1,5 +1,7 @@
<?php
/* $Id$*/
+
+
include('includes/DefineSerialItems.php');
include('includes/DefineStockAdjustment.php');
include('includes/session.inc');
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/doc/Change.log 2011-06-05 23:46:02 UTC (rev 4588)
@@ -1,5 +1,8 @@
webERP Change Log
+6/6/11 Phil: AddSerialItems.php from Stock Adjustment was not picking up single entries because of error in for loop condition fixed
+5/6/11 Phil: BankMatching typo pprintf fixed
+
3/6/11 Version 4.04.3 Release
2/6/11 Phil: ConfirmDispatchControlled_Invoice.php type include/InputSerialItems.php
Modified: trunk/includes/Add_SerialItems.php
===================================================================
--- trunk/includes/Add_SerialItems.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/includes/Add_SerialItems.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -6,29 +6,29 @@
/********************************************
Added KEYED Entry values
********************************************/
-if ( isset($_POST['AddBatches']) && $_POST['AddBatches']!='') {
-
+if ( (isset($_POST['AddBatches']) AND $_POST['AddBatches']!='')) {
+
for ($i=0;$i < 10;$i++){
- if(isset($_POST['SerialNo' . $i]) and strlen($_POST['SerialNo' . $i])>0){
+ if(isset($_POST['SerialNo' . $i]) AND strlen($_POST['SerialNo' . $i])>0){
if ($ItemMustExist){
$ExistingBundleQty = ValidBundleRef($StockID, $LocationOut, $_POST['SerialNo' . $i]);
- if ($ExistingBundleQty >0 or ($ExistingBundleQty==1 and $IsCredit=true)){
+ if ($ExistingBundleQty >0 OR ($ExistingBundleQty==1 and $IsCredit=true)){
$AddThisBundle = true;
/*If the user enters a duplicate serial number the later one over-writes
the first entered one - no warning given though ? */
if ($_POST['Qty' . $i] > $ExistingBundleQty){
if ($LineItem->Serialised ==1){
- echo '<BR>';
+ echo '<br />';
prnMsg ( $_POST['SerialNo' . $i] . ' ' .
_('has already been sold'),'warning' );
$AddThisBundle = false;
} elseif ($ExistingBundleQty==0) { /* and its a batch */
- echo '<BR>';
+ echo '<br />';
prnMsg ( _('There is none of') . ' '. $_POST['SerialNo' . $i] .
' '. _('remaining').'.', 'warn');
$AddThisBundle = false;
} else {
- echo '<BR>';
+ echo '<br />';
prnMsg ( _('There is only'). ' ' . $ExistingBundleQty .
' '._('of') . ' ' . $_POST['SerialNo' . $i] . ' '. _('remaining') . '. ' .
_('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll'),
@@ -42,7 +42,7 @@
}
} /*end if ExistingBundleQty >0 */
else {
- echo '<BR>';
+ echo '<br />';
prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='.$_POST['SerialNo'. $i] . '" target=_blank>'.$_POST['SerialNo'. $i]. '</a> ' ._('not available') . '...' , '', 'Notice' );
unset($_POST['SerialNo' . $i]);
}
@@ -57,10 +57,10 @@
if ($LineItem->Serialised){
$ExistingQty = ValidBundleRef($StockID, $LocationOut, $NewSerialNo);
if ($NewQty == 1 && $ExistingQty != 0){
- prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being added exists with a Quantity that is not Zero (0)!"), 'error' );
+ prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being added exists with a Quantity that is not Zero (0)!'), 'error' );
$SerialError = true;
} elseif ($NewQty == -1 && $ExistingQty != 1){
- prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _("The Serial Number being removed exists with a Quantity that is not One (1)!"), 'error');
+ prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> : '. _('The Serial Number being removed exists with a Quantity that is not One (1)!'), 'error');
$SerialError = true;
}
}
@@ -75,16 +75,14 @@
if (!isset($_POST['Bundles'])) {
$_POST['Bundles']=0;
}
- echo count($_POST['Bundles']);
- for ($i=0;$i < count($_POST['Bundles'])-1;$i++){ /*there is an entry in the multi select list box */
+ //echo count($_POST['Bundles']);
+ for ($i=0;$i < count($_POST['Bundles']);$i++){ /*there is an entry in the multi select list box */
if ($LineItem->Serialised==1){ /*only if the item is serialised */
- $LineItem->SerialItems[$_POST['Bundles'][$i]] = new SerialItem ($_POST['Bundles'][$i], ($InOutModifier>0?1:-1) );
+ $LineItem->SerialItems[$_POST['Bundles'][$i]] = new SerialItem ($_POST['Bundles'][$i], ($InOutModifier>0 ? 1:-1) );
} else {
list($SerialNo, $Qty) = explode ('/|/', $_POST['Bundles'][$i]);
if ($Qty != 0) {
-
- $LineItem->SerialItems[$SerialNo] =
- new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) );
+ $LineItem->SerialItems[$SerialNo] = new SerialItem ($SerialNo, $Qty*($InOutModifier>0?1:-1) );
}
}
}
@@ -171,13 +169,13 @@
/*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */
if ($NewQty > $ExistingBundleQty){
if ($LineItem->Serialised ==1){
- echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.';
+ echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.';
$AddThisBundle = false;
} elseif ($ExistingBundleQty==0) { /* and its a batch */
- echo '<BR>' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.';
+ echo '<br />' . _('There is none of'). ' <a href="/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.';
$AddThisBundle = false;
} else {
- echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' .
+ echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' .
'<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '.
_('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll');
$NewQty = $ExistingBundleQty;
@@ -189,7 +187,7 @@
}
} /*end if ExistingBundleQty >0 */
else {
- echo '<BR>';
+ echo '<br />';
prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') ,'', 'Notice' );
}
if (!$valid) $invalid_imports++;
@@ -268,13 +266,13 @@
/*If the user enters a duplicate serial number the later one over-writes the first entered one - no warning given though ? */
if ($NewQty > $ExistingBundleQty){
if ($LineItem->Serialised ==1){
- echo '<BR>' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.';
+ echo '<br />' . '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('has already been sold'). '.';
$AddThisBundle = false;
} elseif ($ExistingBundleQty==0) { /* and its a batch */
- echo '<BR>' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.';
+ echo '<br />' . _('There is none of'). ' <a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> '. _('remaining') .'.';
$AddThisBundle = false;
} else {
- echo '<BR>'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' .
+ echo '<br />'. _('There is only') . ' ' . $ExistingBundleQty . ' '. _('of') . ' ' .
'<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('remaining') . '. '.
_('The entered quantity will be reduced to the remaining amount left of this batch/bundle/roll');
$NewQty = $ExistingBundleQty;
@@ -286,7 +284,7 @@
}
} /*end if ExistingBundleQty >0 */
else {
- echo '<BR>';
+ echo '<br />';
prnMsg( '<a href="'.$rootpath.'/StockSerialItemResearch.php?serialno='. $NewSerialNo . '" target=_blank>'.$NewSerialNo. '</a> ' . _('not available') . '...' ,'', 'Notice' );
}
if (!$valid) $invalid_imports++;
Modified: trunk/includes/InputSerialItemsExisting.php
===================================================================
--- trunk/includes/InputSerialItemsExisting.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/includes/InputSerialItemsExisting.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -9,59 +9,60 @@
**/
if ($_POST['EntryType'] == 'KEYED'){
/*Also a multi select box for adding bundles to the dispatch without keying */
- $sql = "SELECT serialno, quantity
+ $sql = "SELECT serialno, quantity
FROM stockserialitems
- WHERE stockid='" . $StockID . "' AND loccode ='" .
- $LocationOut."' AND quantity > 0";
- //echo $sql;
+ WHERE stockid='" . $StockID . "'
+ AND loccode ='" . $LocationOut."'
+ AND quantity > 0";
$ErrMsg = '<br />'. _('Could not retrieve the items for'). ' ' . $StockID;
- $Bundles = DB_query($sql,$db, $ErrMsg );
- echo '<table class=selection><tr>';
- if (DB_num_rows($Bundles)>0){
- $AllSerials=array();
+ $Bundles = DB_query($sql,$db, $ErrMsg );
+ echo '<table class="selection"><tr>';
+ if (DB_num_rows($Bundles)>0){
+ $AllSerials=array();
foreach ($LineItem->SerialItems as $Itm){
$AllSerials[$Itm->BundleRef] = $Itm->BundleQty;
}
-
+
echo '<td valign="top"><b>'. _('Select Existing Items'). '</b><br />';
-
- echo '<form action="' . $_SERVER['PHP_SELF'] . '?=' . SID . '" method="POST">';
+
+ echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="POST">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
- echo '<input type=hidden name="LineNo" value="' . $LineNo . '">
- <input type="hidden" name="StockID" value="' . $StockID . '">
- <input type="hidden" name="EntryType" value="KEYED">
- <input type=hidden name="identifier" value="' . $identifier . '">
+ echo '<input type=hidden name="LineNo" value="' . $LineNo . '">
+ <input type="hidden" name="StockID" value="' . $StockID . '">
+ <input type="hidden" name="EntryType" value="KEYED">
+ <input type=hidden name="identifier" value="' . $identifier . '">
<input type="hidden" name="EditControlled" value="true">
- <select Name=Bundles[] multiple>';
-
- $id=0;
+ <select name=Bundles[] multiple>';
+
+ $id=0;
$ItemsAvailable=0;
- while ($myrow=DB_fetch_array($Bundles,$db)){
+ while ($myrow=DB_fetch_array($Bundles,$db)){
if ($LineItem->Serialised==1){
if ( !array_key_exists($myrow['serialno'], $AllSerials) ){
- echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>';
+ echo '<option value="' . $myrow['serialno'] . '">' . $myrow['serialno'].'</option>';
$ItemsAvailable++;
}
- } else {
- if ( !array_key_exists($myrow['serialno'], $AllSerials) ||
+ } else {
+ if ( !array_key_exists($myrow['serialno'], $AllSerials) OR
($myrow['quantity'] - $AllSerials[$myrow['serialno']] >= 0) ) {
+
$RecvQty = $myrow['quantity'] - $AllSerials[$myrow['serialno']];
- echo '<OPTION VALUE="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' .
- $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</OPTION>';
+ echo '<option value="' . $myrow['serialno'] . '/|/'. $RecvQty .'">' . $myrow['serialno'].' - ' . _('Qty left'). ': ' . $RecvQty . '</option>';
$ItemsAvailable += $RecvQty;
- }
+ }
}
- }
- echo '</select><br>';
- echo '<br><div class=centre><input type=submit name="AddBatches" value="'. _('Enter'). '"></div><br />';
+ }
+ echo '</select>
+ <br />';
+ echo '<br /><div class="centre"><input type="submit" name="AddBatches" value="'. _('Enter'). '"></div>
+ <br />';
echo '</form>';
echo $ItemsAvailable . ' ' . _('items available');
echo '</td>';
- } else {
+ } else {
echo '<td>'. prnMsg( _('There does not appear to be any of') . ' ' . $StockID . ' ' . _('left in'). ' '. $LocationOut , 'warn') . '</td>';
}
-
- echo '</tr></table>';
+ echo '</tr></table>';
}
\ No newline at end of file
Modified: trunk/includes/InputSerialItemsKeyed.php
===================================================================
--- trunk/includes/InputSerialItemsKeyed.php 2011-06-03 09:53:57 UTC (rev 4587)
+++ trunk/includes/InputSerialItemsKeyed.php 2011-06-05 23:46:02 UTC (rev 4588)
@@ -21,7 +21,9 @@
/*Display the batches already entered with quantities if not serialised */
-echo '<table class=selection><tr><td valign=top><table class=selection>';
+echo '<table class="selection">
+ <tr><td valign=top>
+ <table class="selection">';
echo $tableheader;
$TotalQuantity = 0; /*Variable to accumulate total quantity received */
@@ -80,10 +82,10 @@
echo '<form action="' . $_SERVER['PHP_SELF'] . '" name="Ga6uF5Wa" method="post">
- <input type=hidden name=LineNo value="' . $LineNo . '">
- <input type=hidden name=StockID value="' . $StockID . '">
+ <input type=hidden name="LineNo" value="' . $LineNo . '">
+ <input type=hidden name="StockID" value="' . $StockID . '">
<input type=hidden name="identifier" value="' . $identifier . '">
- <input type=hidden name=EntryType value="KEYED">';
+ <input type=hidden name="EntryType" value="KEYED">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
if ( isset($_GET['EditControlled']) ) {
$EditControlled = isset($_GET['EditControlled'])?$_GET['EditControlled']:false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|