| 주문번호 | 주문자 | 주문합계 | 취소+DC | 무통장입금 | 카드입금 | 포인트입금 | 입금취소 | 미수금 | unset($tot); $sql = " select od_id, mb_id, od_name, uq_id, od_send_cost, od_receipt_bank, od_receipt_card, od_receipt_point, od_dc_amount, (od_receipt_bank + od_receipt_card + od_receipt_point) as receiptamount, (od_refund_amount + od_cancel_card) as receiptcancel from {$g4['yc4_order_table']} where SUBSTRING(od_time,1,10) = '$date' order by od_id desc "; $result = sql_query($sql); for ($i=0; $row=mysql_fetch_array($result); $i++) { if ($i > 0) echo '
|---|---|---|---|---|---|---|---|---|
| =$row[od_id]?> | =$href?>=$row[od_name]?> | =number_format($row1['orderamount'])?> | =number_format($row1['ordercancel'] + $row['od_dc_amount'])?> | =number_format($row['od_receipt_bank'])?> | =number_format($row['od_receipt_card'])?> | =number_format($row['od_receipt_point'])?> | =number_format($row['receiptcancel'])?> | =number_format($misu)?> |
| 자료가 한건도 없습니다. | ||||||||
| 합 계 | =number_format($tot['orderamount'])?> | =number_format($tot['ordercancel']+ $tot['dc'])?> | =number_format($tot['receipt_bank'])?> | =number_format($tot['receipt_card'])?> | =number_format($tot['receipt_point'])?> | =number_format($tot['receiptcancel'])?> | =number_format($tot['misu'])?> | |