diff --git a/StockLocMovements.php b/StockLocMovements.php index 7f65feb97..800ed0285 100644 --- a/StockLocMovements.php +++ b/StockLocMovements.php @@ -1,9 +1,5 @@ >>>>>> parent of d496ef8e... Update StockLocMovements.php include('includes/session.php'); @@ -20,7 +16,6 @@ -<<<<<<< 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'))); @@ -93,21 +60,12 @@ echo ' ', _('Show Movements before'), ': ', ' ', _('But after'), ': ', '

'; -======= - - -
- -
-
'; ->>>>>>> parent of d496ef8e... Update StockLocMovements.php if ($_POST['StockLocation'] == 'All') { $_POST['StockLocation'] = '%%'; @@ -116,7 +74,6 @@ $SQLBeforeDate = FormatDateForSQL($_POST['BeforeDate']); $SQLAfterDate = FormatDateForSQL($_POST['AfterDate']); -<<<<<<< HEAD $SQL = "SELECT stockmoves.stockid, stockmoves.stkmoveno, systypes.typename, @@ -134,40 +91,15 @@ 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); @@ -185,7 +117,6 @@ ', _('Discount'), ' ', _('Quantity on Hand'), ' ', _('Serial No.'), ' -<<<<<<< HEAD '; while ($MyRow = DB_fetch_array($MovtsResult)) { @@ -217,39 +148,6 @@ ', 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 ''; @@ -258,8 +156,4 @@ include ('includes/footer.php'); -<<<<<<< HEAD -?> -======= ?> ->>>>>>> parent of d496ef8e... Update StockLocMovements.php