Skip to content

Commit

Permalink
Show stock adjustments and internal stock requests as per http://www.…
Browse files Browse the repository at this point in the history
  • Loading branch information
timschofield committed Mar 6, 2018
1 parent f451547 commit d070554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions StockUsage.php
Expand Up @@ -107,7 +107,7 @@
$sql = "SELECT periods.periodno,
periods.lastdate_in_period,
canview,
SUM(CASE WHEN (stockmoves.type=10 Or stockmoves.type=11 OR stockmoves.type=28)
SUM(CASE WHEN (stockmoves.type=10 OR stockmoves.type=11 OR stockmoves.type=17 OR stockmoves.type=28 OR stockmoves.type=38)
AND stockmoves.hidemovt=0
AND stockmoves.stockid = '" . $StockID . "'
THEN -stockmoves.qty ELSE 0 END) AS qtyused
Expand All @@ -121,7 +121,7 @@
} else {
$sql = "SELECT periods.periodno,
periods.lastdate_in_period,
SUM(CASE WHEN (stockmoves.type=10 Or stockmoves.type=11 OR stockmoves.type=28)
SUM(CASE WHEN (stockmoves.type=10 OR stockmoves.type=11 OR stockmoves.type=17 OR stockmoves.type=28 OR stockmoves.type=38)
AND stockmoves.hidemovt=0
AND stockmoves.stockid = '" . $StockID . "'
AND stockmoves.loccode='" . $_POST['StockLocation'] . "'
Expand Down

0 comments on commit d070554

Please sign in to comment.