0) echo "\n"; // 장바구니 상태별 금액 $sql1 = " select (SUM(ct_amount * ct_qty)) as orderamount, /* 주문합계 */ (SUM(IF(ct_status = '취소' OR ct_status = '반품' OR ct_status = '품절', ct_amount * ct_qty, 0))) as ordercancel /* 주문취소 */ from {$g4['yc4_cart_table']} where uq_id = '{$row['uq_id']}' "; $row1 = sql_fetch($sql1); if ($row['mb_id'] == '') { // 비회원일 경우는 주문자로 링크 $href = ""; } else { // 회원일 경우는 회원아이디로 링크 $href = ""; } $row1['orderamount'] += $row['od_send_cost']; $misu = $row1['orderamount'] - $row1['ordercancel'] - $row['od_dc_amount'] - $row['receiptamount'] + $row['receiptcancel']; echo " \n"; $tot['orderamount'] += $row1['orderamount']; $tot['ordercancel'] += $row1['ordercancel']; $tot['dc'] += $row['od_dc_amount']; $tot['receipt_bank'] += $row['od_receipt_bank']; $tot['receipt_card'] += $row['od_receipt_card']; $tot['receipt_point'] += $row['od_receipt_point']; $tot['receiptamount'] += $row['receiptamount']; $tot['receiptcancel'] += $row['receiptcancel']; $tot['misu'] += $misu; } if ($i == 0) { echo ""; } ?>
주문번호 주문자 주문합계 취소+DC 무통장입금 카드입금 포인트입금 입금취소 미수금
$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)."
자료가 한건도 없습니다.
합 계