= strtotime(date("Y-m-d")) ) ? true : false;
// 합계 변수 선언
$t_prev_stock = $t_production = $t_inhouse_use = $t_recycling = $t_disposal = $t_sales = $t_sales_amount = $t_menu_discount = $t_payment_amount = $t_current_stock = 0;
/*
$chkQuery = "SELECT * FROM {$fg['bakery_product_table']} WHERE used = 1 ";
$cheQueryResult = sql_query($chkQuery);
$a=1;
while ($row = sql_fetch_array($cheQueryResult)) {
echo $a;
print_r($row);
echo "
";
$a++;
}
echo "여기까지 테스트";
*/
bakeryPreUpdate($searchDate, $edit_datetime);
$authInfo = getAuthorInfo($searchDate);
if (!$authInfo) {
$authInfo = ['worker' => '', 'author' => ''];
}
?>
| No. | 품목 | 바코드 | 전일재고 | 생산 | 업장사용 | 재활용 | 폐기 | 판매수량 | 단가 | 판매금액 | 메뉴별할인 | 결제금액 | 현재고 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| =$i?> | =htmlspecialchars($row['product_name'])?> | =$row['barcode']?> | =number_format($previous_stock)?> | =number_format($row['production'])?> | =number_format($row['inhouse_use'])?> | =number_format($row['recycling'])?> | =number_format($row['disposal'])?> | =number_format($row['sales'])?> | =number_format($unit_price)?> | =number_format($row['sales_amount'])?> | =number_format($row['menu_discount'])?> | =number_format($row['payment_amount'])?> | =number_format($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)?> | |||
| 누계 | =number_format($sumData['total_production'])?> | =number_format($sumData['total_inhouse_use'])?> | =number_format($sumData['total_recycling'])?> | =number_format($sumData['total_disposal'])?> | =number_format($sumData['total_sales'])?> | =number_format($sumData['total_sales_amount'])?> | =number_format($sumData['total_menu_discount'])?> | =number_format($sumData['total_payment_amount'])?> | |||||