diff --git a/manager/bakery/bakery_stock_excel.php b/manager/bakery/bakery_stock_excel.php index cce406857..b27d579d8 100644 --- a/manager/bakery/bakery_stock_excel.php +++ b/manager/bakery/bakery_stock_excel.php @@ -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,105 @@ header("Content-Description: PHP Generated Data"); -
| 품목 | -바코드 | -전일재고 | -생산 | -업장사용 | -재활용 | -폐기 | -판매수량 | -판매단가 | -판매금액 | -메뉴별할인 | -결제금액 | -현재고 | +베이커리일일현황 | ++ | + | + | + | + | + | + | + | + | + | + | + |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + | + | + | + | + | + | + | + | + | + | + | + | + | |||||||||||||
| 날짜 | +=$searchDate?> | ++ | + | + | + | + | + | + | + | + | + | + | |||||||||||||
| 근무자 | +=$authInfo['worker']?> | ++ | + | + | + | + | + | + | + | + | + | + | |||||||||||||
| 작성자 | +=$authInfo['author']?> | ++ | + | + | + | + | + | + | + | + | + | + | |||||||||||||
| 품목 | +바코드 | +전일재고 | +생산 | +업장사용 | +재활용 | +폐기 | +판매수량 | +판매단가 | +판매금액 | +메뉴별할인 | +결제금액 | +현재고 | |||||||||||||
| =$row['product_name']?> | =$row['barcode']?> | =number_format($previous_stock)?> | @@ -61,6 +142,21 @@ foreach ( $result as $row) {=number_format($row['menu_discount'])?> | =number_format($row['payment_amount'])?> | =number_format($row['current_stock'])?> | +======= +=$row['product_name']?> | +=$row['barcode']?> | +=number_format(getPrevStock($searchDate, $row['barcode']))?> | +=number_format($row['production'])?> | +=number_format($row['inhouse_use'])?> | +=number_format($row['recycling'])?> | +=number_format($row['disposal'])?> | +=number_format($row['sales'])?> | +=($row['sales'] != 0 && $row['sales_amount'] != 0) ? number_format($row['sales_amount']/$row['sales']) : 0 ?> | +=number_format($row['sales_amount'])?> | +=number_format($row['menu_discount'])?> | +=number_format($row['payment_amount'])?> | +=number_format($row['current_stock'])?> | +>>>>>>> manager|||||||
| 합계 | -- | =number_format($t_prev_stock) ?> | -=number_format($t_production) ?> | -=number_format($t_inhouse_use) ?> | -=number_format($t_recycling) ?> | -=number_format($t_disposal) ?> | -=number_format($t_sales) ?> | -- | =number_format($t_sales_amount) ?> | -=number_format($t_menu_discount) ?> | -=number_format($t_payment_amount) ?> | -=number_format($t_current_stock) ?> | -|||||||||||||
| 합계 | ++ | =number_format($t_prev_stock) ?> | +=number_format($t_production) ?> | +=number_format($t_inhouse_use) ?> | +=number_format($t_recycling) ?> | +=number_format($t_disposal) ?> | +=number_format($t_sales) ?> | ++ | =number_format($t_sales_amount) ?> | +=number_format($t_menu_discount) ?> | +=number_format($t_payment_amount) ?> | +=number_format($t_current_stock) ?> | +