Changeset 17979 for branches/version-2_4/data/class/helper/SC_Helper_DB.php
- Timestamp:
- 2009/04/17 17:00:45 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/class/helper/SC_Helper_DB.php
r17785 r17979 531 531 532 532 /** 533 * 顧客番号、利用ポイント、加算ポイントから最終ポイントを取得する. 534 * 535 * @param integer $customer_id 顧客番号 536 * @param integer $use_point 利用ポイント 537 * @param integer $add_point 加算ポイント 538 * @return array 最終ポイントの配列 539 */ 540 function sfGetCustomerPointFromCid($customer_id, $use_point, $add_point) { 541 $objQuery = new SC_Query(); 542 if (USE_POINT === true) { 543 $arrRet = $objQuery->select("point", "dtb_customer", "customer_id = ?", array($customer_id)); 544 $point = $arrRet[0]['point']; 545 $total_point = $arrRet[0]['point'] - $use_point + $add_point; 546 } else { 547 $total_point = 0; 548 $point = 0; 549 } 550 return array($point, $total_point); 551 } 552 /** 533 553 * カテゴリツリーの取得を行う. 534 554 *
Note: See TracChangeset
for help on using the changeset viewer.
