- Timestamp:
- 2007/09/04 16:27:29 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/util/SC_Utils.php
r15588 r15592 1305 1305 } 1306 1306 1307 // 受注番号、利用ポイント、加算ポイントから最終ポイントを取得1308 function sfGetCustomerPoint($order_id, $use_point, $add_point) {1309 $objQuery = new SC_Query();1310 $arrRet = $objQuery->select("customer_id", "dtb_order", "order_id = ?", array($order_id));1311 $customer_id = $arrRet[0]['customer_id'];1312 if($customer_id != "" && $customer_id >= 1) {1313 $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id));1314 $point = $arrRet[0]['point'];1315 $total_point = $arrRet[0]['point'] - $use_point + $add_point;1316 } else {1317 $total_point = "";1318 $point = "";1319 }1320 return array($point, $total_point);1321 }1322 1323 1307 /* ドメイン間で有効なセッションのスタート */ 1324 1308 function sfDomainSessionStart() {
Note: See TracChangeset
for help on using the changeset viewer.
