엑셀변환 시 합계 계산이 정상적으로 되지 않는 부분 수정
This commit is contained in:
@ -45,11 +45,12 @@ $t_prev_stock = $t_production = $t_inhouse_use = $t_recycling = $t_disposal = $t
|
|||||||
|
|
||||||
// 데이터 출력
|
// 데이터 출력
|
||||||
foreach ( $result as $row) {
|
foreach ( $result as $row) {
|
||||||
|
$previous_stock = getPrevStock($searchDate, $row['barcode']);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?=$row['product_name']?></td>
|
<td><?=$row['product_name']?></td>
|
||||||
<td><?=$row['barcode']?></td>
|
<td><?=$row['barcode']?></td>
|
||||||
<td><?=number_format(getPrevStock($searchDate, $row['barcode']))?></td>
|
<td><?=number_format($previous_stock)?></td>
|
||||||
<td><?=number_format($row['production'])?></td>
|
<td><?=number_format($row['production'])?></td>
|
||||||
<td><?=number_format($row['inhouse_use'])?></td>
|
<td><?=number_format($row['inhouse_use'])?></td>
|
||||||
<td><?=number_format($row['recycling'])?></td>
|
<td><?=number_format($row['recycling'])?></td>
|
||||||
@ -64,7 +65,7 @@ foreach ( $result as $row) {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// 합계 함수 처리
|
// 합계 함수 처리
|
||||||
$t_prev_stock += $row['previous_stock'];
|
$t_prev_stock += $previous_stock;
|
||||||
$t_production += $row['production'];
|
$t_production += $row['production'];
|
||||||
$t_inhouse_use += $row['inhouse_use'];
|
$t_inhouse_use += $row['inhouse_use'];
|
||||||
$t_recycling += $row['recycling'];
|
$t_recycling += $row['recycling'];
|
||||||
|
|||||||
Reference in New Issue
Block a user