Skip to content

Commit

Permalink
Merge pull request #6 from webERP-team/master
Browse files Browse the repository at this point in the history
Apply Tim's change to show stock adjustments and internal stock requests
  • Loading branch information
TurboPT committed Mar 6, 2018
2 parents 85ad84f + 02452bc commit 2180bed
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 2180bed

Please sign in to comment.