일일현황 엑셀변환 시 날짜, 근무자, 작성자를 출력하도록 수정
This commit is contained in:
@ -7,6 +7,7 @@ if(!$_SESSION['user_id']) exit; // 로그인 되어있지 않으면 확인 불
|
||||
$searchDate = $_POST['searchDate'];
|
||||
$ord_by = $_POST['ordBy'];
|
||||
$result = getBakeryInvenData($searchDate, $ord_by);
|
||||
$authInfo = getAuthorInfo($searchDate);
|
||||
|
||||
// UTF-8 BOM 추가
|
||||
echo "\xEF\xBB\xBF";
|
||||
@ -17,26 +18,103 @@ header("Content-Description: PHP Generated Data");
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<style type="text/css">
|
||||
.tit { background-color:#C0C0C0; height:30px; }
|
||||
table {background: none; border-collapse:collapse; border:none;}
|
||||
.head { background-color:#C0C0C0;}
|
||||
.foot { background-color:#C0C0C0;}
|
||||
.no-text { mso-number-format:'\@'; text-align:center; }
|
||||
</style>
|
||||
|
||||
<table cellspacing="0" cellpadding="0" border="1">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tit">품목</th>
|
||||
<th class="tit">바코드</th>
|
||||
<th class="tit">전일재고</th>
|
||||
<th class="tit">생산</th>
|
||||
<th class="tit">업장사용</th>
|
||||
<th class="tit">재활용</th>
|
||||
<th class="tit">폐기</th>
|
||||
<th class="tit">판매수량</th>
|
||||
<th class="tit">판매단가</th>
|
||||
<th class="tit">판매금액</th>
|
||||
<th class="tit">메뉴별할인</th>
|
||||
<th class="tit">결제금액</th>
|
||||
<th class="tit">현재고</th>
|
||||
<th>베이커리일일현황</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>날짜</th>
|
||||
<th><?=$searchDate?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</td>
|
||||
<tr>
|
||||
<th>근무자</th>
|
||||
<th><?=$authInfo['worker']?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</td>
|
||||
<tr>
|
||||
<th>작성자</th>
|
||||
<th><?=$authInfo['author']?></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</td>
|
||||
<tr>
|
||||
<th class="head">품목</th>
|
||||
<th class="head">바코드</th>
|
||||
<th class="head">전일재고</th>
|
||||
<th class="head">생산</th>
|
||||
<th class="head">업장사용</th>
|
||||
<th class="head">재활용</th>
|
||||
<th class="head">폐기</th>
|
||||
<th class="head">판매수량</th>
|
||||
<th class="head">판매단가</th>
|
||||
<th class="head">판매금액</th>
|
||||
<th class="head">메뉴별할인</th>
|
||||
<th class="head">결제금액</th>
|
||||
<th class="head">현재고</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -79,19 +157,19 @@ foreach ( $result as $row) {
|
||||
</tbody>
|
||||
<tfoot class="table-group-divider">
|
||||
<tr class="bakery_total">
|
||||
<td>합계</td>
|
||||
<td></td>
|
||||
<td><?=number_format($t_prev_stock) ?></td>
|
||||
<td><?=number_format($t_production) ?></td>
|
||||
<td><?=number_format($t_inhouse_use) ?></td>
|
||||
<td><?=number_format($t_recycling) ?></td>
|
||||
<td><?=number_format($t_disposal) ?></td>
|
||||
<td><?=number_format($t_sales) ?></td>
|
||||
<td></td>
|
||||
<td><?=number_format($t_sales_amount) ?></td>
|
||||
<td><?=number_format($t_menu_discount) ?></td>
|
||||
<td><?=number_format($t_payment_amount) ?></td>
|
||||
<td><?=number_format($t_current_stock) ?></td>
|
||||
<td class="foot">합계</td>
|
||||
<td class="foot"></td>
|
||||
<td class="foot"><?=number_format($t_prev_stock) ?></td>
|
||||
<td class="foot"><?=number_format($t_production) ?></td>
|
||||
<td class="foot"><?=number_format($t_inhouse_use) ?></td>
|
||||
<td class="foot"><?=number_format($t_recycling) ?></td>
|
||||
<td class="foot"><?=number_format($t_disposal) ?></td>
|
||||
<td class="foot"><?=number_format($t_sales) ?></td>
|
||||
<td class="foot"></td>
|
||||
<td class="foot"><?=number_format($t_sales_amount) ?></td>
|
||||
<td class="foot"><?=number_format($t_menu_discount) ?></td>
|
||||
<td class="foot"><?=number_format($t_payment_amount) ?></td>
|
||||
<td class="foot"><?=number_format($t_current_stock) ?></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user