Add detail to stock

This commit is contained in:
Dany De Bontridder 2012-06-29 20:25:50 +00:00
parent cffdaf14b9
commit cd0d2e9246
3 changed files with 9 additions and 0 deletions

View file

@ -39,6 +39,7 @@ for ($i=0;$i<count($array);$i++)
{
$p_array['sg_code'.$i]=$array[$i]['sg_code'];
$p_array['sg_quantity'.$i]=$array[$i]['sg_quantity'];
$p_array['sg_type'.$i]=$array[$i]['sg_type'];
}
echo $st->input($p_array,true);

View file

@ -74,6 +74,9 @@ class Stock_Goods extends Stock_Goods_Sql
}
$sg_code[$e]->setReadOnly($p_readonly);
$sg_quantity[$e]->setReadOnly($p_readonly);
if ( isset (${'sg_type'.$e})) {
$sg_type[$e]=(${'sg_type'.$e}=='c')?'OUT':'IN';
}
}
require_once 'template/stock_inv.php';
}

View file

@ -77,6 +77,11 @@
<?=$sg_quantity[$i]->input()?>
<? endif;?>
</td>
<TD class="num"">
<? if (isset ($sg_type[$i])):?>
<?=$sg_type[$i]?>
<? endif;?>
</td>
</tr>
<? endfor; ?>
</table>