누계 데이터 출력 추가.

This commit is contained in:
2025-11-05 11:43:34 +09:00
parent 1a38e0613f
commit c0a22f2fa4
2 changed files with 63 additions and 1 deletions

View File

@ -254,10 +254,11 @@ if (!$authInfo) {
<?php $i++;
} // endforeach
$sumData = getBakeryInvenSummaryData($searchDate);
?>
</tbody>
<!-- 합계 데이터 출력 -->
<tfoot>
<!-- 합계 데이터 출력 -->
<tr>
<td colspan="3" class="text-center">합계</th>
<td class="text-end" id="total_prev_stock"><?=number_format($t_prev_stock)?></th>
@ -272,6 +273,21 @@ if (!$authInfo) {
<td class="text-end" id="total_payment_amount"><?=number_format($t_payment_amount)?></th>
<td class="text-end" id="total_current_stock"><?=number_format($t_current_stock)?></th>
</tr>
<!-- 누계 데이터 출력 -->
<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_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>
<td class="text-end" id="summary_disposal"><?=number_format($sumData['total_disposal'])?></th>
<td class="text-end" id="summary_sales"><?=number_format($sumData['total_sales'])?></th>
<td class="text-end" id="summary_unit_price"></th>
<td class="text-end" id="summary_sales_amount"><?=number_format($sumData['total_sales_amount'])?></th>
<td class="text-end" id="summary_menu_discount"><?=number_format($sumData['total_menu_discount'])?></th>
<td class="text-end" id="summary_payment_amount"><?=number_format($sumData['total_payment_amount'])?></th>
<td class="text-end" id="summary_current_stock"></th>
</tr>
</tfoot>
</table>
</div>