33 <?php echo _(
"Code Stock")?>
35 <?php
for (
$i = 0;
$i < count($a_repository);
$i++):?>
37 <?php echo
h( $a_repository[
$i][
'r_name'])?>
41 <?php echo _(
"Total")?>
45 for ($x = 0; $x < count($a_code); $x++):
46 $class=($x%2==0)?
' class="odd" ':
' class="even" ';
49 <tr <?php echo $class?> >
55 for (
$e = 0;
$e < count($a_repository);
$e++):
57 $array =
$cn->get_array(
"select coalesce(sum(s_qin)) as s_qin,coalesce(sum(s_qout)) as s_qout
58 from tmp_stockgood_detail
59 where r_id=$1 and sg_code=$2 and s_id=$3"
60 , array($a_repository[
$e][
'r_id'], $a_code[$x][
'sg_code'],
$tmp_id));
73 <?php echo _(
"IN")?> :
81 <?php echo _(
"OUT")?> :
89 <?php echo _(
"DIFF")?> :
107 <?php echo _(
"IN")?> :
110 <?php echo
nbm($n_in)?>
115 <?php echo _(
"OUT")?> :
123 <?php echo _(
"DIFF")?> :
th($p_string, $p_extra='', $raw='')
tr($p_string, $p_extra='')
td($p_string='', $p_extra='')
surround the string with td
nbm($p_number, $p_dec=2)
format the number with a sep.
h( $row[ 'oa_description'])