maxSn
This commit is contained in:
parent
163e3d2130
commit
46e410defa
@ -80,7 +80,7 @@ class CompanyService extends Service
|
||||
|
||||
$maxSn = Company::withTrashed()->max('sn');
|
||||
$maxSn = intval(str_replace('No', '', $maxSn));
|
||||
$attributes['sn'] = CommonService::stringifyCompanyId($maxSn);
|
||||
$attributes['sn'] = CommonService::stringifyCompanyId($maxSn + 1);
|
||||
|
||||
$node = $this->companyRepository->create($attributes);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user