Commit ba7597bf authored by hujun's avatar hujun

store_name

parent 849058b8
......@@ -351,11 +351,14 @@ class Cost extends Basic
case 4 :
break;
case 5:
$cost_ext_field = 'a.id,b.store_attendance_num,b.assume_fee';
$cost_ext_field = 'a.id,b.store_attendance_num,b.assume_fee,b.store_id';
$where_cost['apply_for_id'] = $data['id'];
$store_cost_data = $m_store_cost->getCostExt($cost_ext_field, $where_cost);
if ($store_cost_data) {
$data['store_cost_data'] = [$store_cost_data];
foreach ($store_cost_data as $k => $v) {
$store_cost_data[$k]['store_name'] = $m_store->getStoreKeyById('store_name', ['id' => $v['store_id']]);
}
$data['store_cost_data'] = $store_cost_data;
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment