浏览代码

latest logic

master
Siti Rahayu 4 年前
父节点
当前提交
bf0b8ee0e7

+ 2
- 2
app/Http/Controllers/Api/CompoundResourceController.php 查看文件

@@ -403,7 +403,7 @@ class CompoundResourceController extends BaseController
}
else{

//check the lastest compound number stored in dbase filtered by jenis
//check the latest compound number stored in dbase filtered by jenis
$notice = Compound::where('jenis_n', $jenis)->withTrashed()->latest()->first();

//sanitize compound number to return only integer
@@ -434,7 +434,7 @@ class CompoundResourceController extends BaseController
}else if($modul == '03')
{
//check if theres no 001, start fresh with 0001
if (empty(Compound::where('jenis', $jenis)->where('kpd', $tag.'0001')->first())) {
if (empty(Compound::where('jenis', $jenis)->where('kpd', $tag.'0001')->withTrashed()->first())) {

$num = '0001';


+ 0
- 5
app/Http/Controllers/Api/LoginController.php 查看文件

@@ -178,11 +178,6 @@ class LoginController extends BaseController
public function testing(Request $request)
{

$date = '2020-10-06 16:19:48';

dd(date('F Y', strtotime($date)));


}

}

正在加载...
取消
保存