From bb38776d6fe3fae3ac1f3e6fd9864c4a32a4f695 Mon Sep 17 00:00:00 2001 From: PaulT Date: Thu, 1 Mar 2018 03:14:26 -0500 Subject: [PATCH] Revert "Update StockLocMovements.php" This reverts commit d496ef8ef5b9f9e9ed1ace875389bf6b7ff9e0f6. --- StockLocMovements.php | 106 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/StockLocMovements.php b/StockLocMovements.php index 800ed0285..7f65feb97 100644 --- a/StockLocMovements.php +++ b/StockLocMovements.php @@ -1,5 +1,9 @@ >>>>>> parent of d496ef8e... Update StockLocMovements.php include('includes/session.php'); @@ -16,6 +20,7 @@ +<<<<<<< HEAD
', _('From Stock Location'), ':'; if (!isset($_POST['BeforeDate']) or !Is_date($_POST['BeforeDate'])) { +<<<<<<< HEAD $_POST['BeforeDate'] = Date($_SESSION['DefaultDateFormat']); +======= + $_POST['BeforeDate'] = Date($_SESSION['DefaultDateFormat']); +>>>>>>> parent of d496ef8e... Update StockLocMovements.php } if (!isset($_POST['AfterDate']) or !Is_date($_POST['AfterDate'])) { $_POST['AfterDate'] = Date($_SESSION['DefaultDateFormat'], Mktime(0, 0, 0, Date('m') - 1, Date('d'), Date('y'))); @@ -60,12 +93,21 @@ echo ' ', _('Show Movements before'), ': ', ' ', _('But after'), ': ', '

'; +======= + + +
+ +
+
'; +>>>>>>> parent of d496ef8e... Update StockLocMovements.php if ($_POST['StockLocation'] == 'All') { $_POST['StockLocation'] = '%%'; @@ -74,6 +116,7 @@ $SQLBeforeDate = FormatDateForSQL($_POST['BeforeDate']); $SQLAfterDate = FormatDateForSQL($_POST['AfterDate']); +<<<<<<< HEAD $SQL = "SELECT stockmoves.stockid, stockmoves.stkmoveno, systypes.typename, @@ -91,15 +134,40 @@ stockmaster.serialised, stockmaster.decimalplaces FROM stockmoves +======= +$sql = "SELECT stockmoves.stockid, + stockmoves.stkmoveno, + systypes.typename, + stockmoves.type, + stockmoves.transno, + stockmoves.trandate, + stockmoves.debtorno, + stockmoves.branchcode, + stockmoves.qty, + stockmoves.reference, + stockmoves.price, + stockmoves.discountpercent, + stockmoves.newqoh, + stockmaster.controlled, + stockmaster.serialised, + stockmaster.decimalplaces + FROM stockmoves +>>>>>>> parent of d496ef8e... Update StockLocMovements.php INNER JOIN systypes ON stockmoves.type=systypes.typeid INNER JOIN stockmaster ON stockmoves.stockid=stockmaster.stockid WHERE stockmoves.loccode " . LIKE . " '" . $_POST['StockLocation'] . "' AND stockmoves.trandate >= '" . $SQLAfterDate . "' +<<<<<<< HEAD AND stockmoves.trandate <= '" . $SQLBeforeDate . "' AND hidemovt=0 ORDER BY stkmoveno DESC"; +======= + AND stockmoves.trandate <= '" . $SQLBeforeDate . "' + AND hidemovt=0 + ORDER BY stkmoveno DESC"; +>>>>>>> parent of d496ef8e... Update StockLocMovements.php $ErrMsg = _('The stock movements for the selected criteria could not be retrieved because'); $MovtsResult = DB_query($SQL, $ErrMsg); @@ -117,6 +185,7 @@ ', _('Discount'), ' ', _('Quantity on Hand'), ' ', _('Serial No.'), ' +<<<<<<< HEAD '; while ($MyRow = DB_fetch_array($MovtsResult)) { @@ -148,6 +217,39 @@ ', locale_number_format($MyRow['newqoh'], $MyRow['decimalplaces']), ' ', $SerialText, ' '; +======= + '; + + while ($MyRow = DB_fetch_array($MovtsResult)) { + + $DisplayTranDate = ConvertSQLDate($myrow['trandate']); + + $SerialSQL = "SELECT serialno, moveqty FROM stockserialmoves WHERE stockmoveno='" . $MyRow['stkmoveno'] . "'"; + $SerialResult = DB_query($SerialSQL); + + $SerialText = ''; + while ($SerialRow = DB_fetch_array($SerialResult)) { + if ($MyRow['serialised'] == 1) { + $SerialText .= $SerialRow['serialno'] . '
'; + } else { + $SerialText .= $SerialRow['serialno'] . ' Qty- ' . $SerialRow['moveqty'] . '
'; + } + } + + echo ' + ', mb_strtoupper($MyRow['stockid']), ' + ', $MyRow['typename'], ' + ', $MyRow['transno'], ' + ', $DisplayTranDate, ' + ', $MyRow['debtorno'], ' + ', locale_number_format($MyRow['qty'], $MyRow['decimalplaces']), ' + ', $MyRow['reference'], ' + ', locale_number_format($MyRow['price'], $_SESSION['CompanyRecord']['decimalplaces']), ' + ', locale_number_format($MyRow['discountpercent'] * 100, 2), '% + ', locale_number_format($MyRow['newqoh'], $MyRow['decimalplaces']), ' + ', $SerialText, ' + '; +>>>>>>> parent of d496ef8e... Update StockLocMovements.php } //end of while loop echo ''; @@ -156,4 +258,8 @@ include ('includes/footer.php'); +<<<<<<< HEAD +?> +======= ?> +>>>>>>> parent of d496ef8e... Update StockLocMovements.php