Add detail to stock
This commit is contained in:
parent
cffdaf14b9
commit
cd0d2e9246
3 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue