|
|
|
@ -122,7 +122,7 @@ class QuestionnairesLogsController extends Controller
|
|
|
|
$sum = DB::table('items')->whereIn('item_id', $items)->where('status', 1)->sum('price');
|
|
|
|
$sum = DB::table('items')->whereIn('item_id', $items)->where('status', 1)->sum('price');
|
|
|
|
$check_sum = DB::table('items')->whereIn('item_id', $check_items['items'])->where('status', 1)->sum('price');
|
|
|
|
$check_sum = DB::table('items')->whereIn('item_id', $check_items['items'])->where('status', 1)->sum('price');
|
|
|
|
$combo = DB::table('combos')->whereIn('combo_id', [$check_items['combo']])->where('status', 1)->sum('price');
|
|
|
|
$combo = DB::table('combos')->whereIn('combo_id', [$check_items['combo']])->where('status', 1)->sum('price');
|
|
|
|
$zhekou = 1;
|
|
|
|
$zhekou = config('app.globals.Wj_ZheKou');
|
|
|
|
return number_format($combo + (($sum + $check_sum) * $zhekou), 2, '.', '');
|
|
|
|
return number_format($combo + (($sum + $check_sum) * $zhekou), 2, '.', '');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function submit(Request $request)
|
|
|
|
public function submit(Request $request)
|
|
|
|
|