This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<?
$q=0;
$w=$GLOBALS['db']->query("select quantity_in,quantity_out from ecmstockins where product_id='".$_REQUEST['record']."' and stock_id='".$_REQUEST['stock_id']."'");
//print mysql_error();
while($r=$GLOBALS['db']->fetchByAssoc($w))
{
//print $r['quantity_in']." ".$r['quantity_out']."<BR>";
$qty=$r['quantity_in']-$r['quantity_out'];
$q+=$qty;
}
print $q;
?>