Browse Source

update type paket in company register

pull/1/head
wahyuun 8 months ago
parent
commit
f723348bed
  1. 6
      app/Http/Controllers/UserRegisterController.php

6
app/Http/Controllers/UserRegisterController.php

@ -35,7 +35,7 @@ class UserRegisterController extends Controller
$phone_no = $data['phone_no']; $phone_no = $data['phone_no'];
$email = $data['email']; $email = $data['email'];
$username = $data['username']; $username = $data['username'];
$type_paket = $request->type_account === 'Personal' ? $data['type_paket'] : ''; $type_paket = $data['type_paket'];
$company_address = $request->type_account === 'Company' ? $data['companyAddress'] : ''; $company_address = $request->type_account === 'Company' ? $data['companyAddress'] : '';
$full_name = $request->type_account === 'Personal' ? $data['full_name'] : ''; $full_name = $request->type_account === 'Personal' ? $data['full_name'] : '';
@ -94,9 +94,7 @@ class UserRegisterController extends Controller
if(empty($getMenu)) { if(empty($getMenu)) {
return; return;
} }
if($request->type_account === 'Personal') { $this->addTransaction((int)$addCompany['id'], $formDataCompany);
$this->addTransaction((int)$addCompany['id'], $formDataCompany);
}
$addMenuCompany = $this->addMenuCompany($getMenu, (int)$addCompany['id']); $addMenuCompany = $this->addMenuCompany($getMenu, (int)$addCompany['id']);
if(empty($addMenuCompany)) { if(empty($addMenuCompany)) {

Loading…
Cancel
Save