Esempio n. 1
0
 /**
  * ポイント付与
  * $product_id が使われていない。
  * @param  int   $price
  * @param  float $point_rate
  * @param  int   $rule
  * @return double
  */
 public static function sfPrePoint($price, $point_rate, $rule = POINT_RULE)
 {
     $real_point = $point_rate / 100;
     $ret = $price * $real_point;
     $ret = SC_Helper_TaxRule_Ex::roundByCalcRule($ret, $rule);
     return $ret;
 }