some fixes
This commit is contained in:
@@ -50,7 +50,7 @@ $i=0;
|
||||
$total_quantity=0;
|
||||
$total_value=0;
|
||||
while ($tmp2 = $db->fetchByAssoc($r1)) {
|
||||
$r = $db->query("select * from ecmstockoperations where product_id='" . $tmp2['id'] . "' ".$add_where." and in_id is null and used=0 and type=0 order by counter asc");
|
||||
$r = $db->query("select * from ecmstockoperations where product_id='" . $tmp2['id'] . "' ".$add_where." and in_id is null and used=0 and type=0 and deleted=0 order by counter asc");
|
||||
$l = 0;
|
||||
if ($r->num_rows > 0) {
|
||||
$docs[$i]['unit_id'] = $app_list_strings['ecmproducts_unit_dom'][$tmp2['unit_id']];
|
||||
@@ -63,8 +63,9 @@ while ($tmp2 = $db->fetchByAssoc($r1)) {
|
||||
$i++;
|
||||
}
|
||||
while ($tmp = $db->fetchByAssoc($r)) {
|
||||
|
||||
var_dump($tmp);
|
||||
$ii = $db->query( "select * from ecmstockoperations where in_id='" . $tmp['id'] ."' and type=1");
|
||||
echo "select * from ecmstockoperations where in_id='" . $tmp['id'] ."' and type=1";
|
||||
if ($ii->num_rows > 0) {
|
||||
// licz ilość dla użytych
|
||||
$quantity_tmp = $tmp['quantity'];
|
||||
|
||||
Reference in New Issue
Block a user