예제 #1
0
 /**
  * 成果テーブルに追加します
  */
 public function Result_HotenItemActionIdUpload_insertSeika($code, &$data, &$session, $priceRoundingType)
 {
     $tables = new CampaignDbTables($code);
     $name = $tables->getTableName_Seika();
     $db =& $this->_core->getDBForUpdate();
     // 1つ目の成果明細を取得する
     $firstDetail = reset($data);
     // 端数の丸め方式
     $roundingTypes = array();
     $roundingTypes['price_rounding_type'] = $priceRoundingType;
     // 丸め方式はすべての明細で一致する
     $roundingTypes['oroshi_rounding_type'] = $firstDetail['oroshi_rounding_type'];
     // 成果テーブルに追加
     $newSeikaId = EcSeikaManager::insertSeika($db, $name, $roundingTypes, $data, $session);
     return $newSeikaId;
 }