[manager] 베이커리 누계기능 추가
This commit is contained in:
@ -276,7 +276,7 @@ if (!$authInfo) {
|
||||
<!-- 누계 데이터 출력 -->
|
||||
<tr>
|
||||
<td colspan="3" class="text-center">누계</th>
|
||||
<td class="text-end" id="summary_prev_stock"><?=number_format($sumData['total_previous_stock'])?></th>
|
||||
<td class="text-end" id="summary_prev_stock"></th>
|
||||
<td class="text-end" id="summary_production"><?=number_format($sumData['total_production'])?></th>
|
||||
<td class="text-end" id="summary_inhouse_use"><?=number_format($sumData['total_inhouse_use'])?></th>
|
||||
<td class="text-end" id="summary_recycling"><?=number_format($sumData['total_recycling'])?></th>
|
||||
|
||||
@ -9,6 +9,9 @@ $ord_by = $_POST['ordBy'];
|
||||
$result = getBakeryInvenData($searchDate, $ord_by);
|
||||
$authInfo = getAuthorInfo($searchDate);
|
||||
|
||||
// 누계 데이터 가져오기
|
||||
$sumData = getBakeryInvenSummaryData($searchDate);
|
||||
|
||||
// UTF-8 BOM 추가
|
||||
echo "\xEF\xBB\xBF";
|
||||
// 헤더 설정
|
||||
@ -142,8 +145,8 @@ foreach ( $result as $row) {
|
||||
<td><?=number_format($row['payment_amount'])?></td>
|
||||
<td><?=number_format($row['current_stock'])?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
<?php
|
||||
// 합계 함수 처리
|
||||
$t_prev_stock += $previous_stock;
|
||||
$t_production += $row['production'];
|
||||
@ -156,7 +159,9 @@ foreach ( $result as $row) {
|
||||
$t_payment_amount += $row['payment_amount'];
|
||||
$t_current_stock += $row['current_stock'];
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
<tfoot class="table-group-divider">
|
||||
<tr class="bakery_total">
|
||||
@ -174,5 +179,20 @@ foreach ( $result as $row) {
|
||||
<td class="foot"><?=number_format($t_payment_amount) ?></td>
|
||||
<td class="foot"><?=number_format($t_current_stock) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="foot">누계</th>
|
||||
<td class="foot"></th>
|
||||
<td class="foot"></th>
|
||||
<td class="foot"><?=number_format($sumData['total_production'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_inhouse_use'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_recycling'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_disposal'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_sales'])?></th>
|
||||
<td class="foot"></th>
|
||||
<td class="foot"><?=number_format($sumData['total_sales_amount'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_menu_discount'])?></th>
|
||||
<td class="foot"><?=number_format($sumData['total_payment_amount'])?></th>
|
||||
<td class="foot"></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user