Explorar el Código

latest

master
Siti Rahayu hace 4 años
padre
commit
1a5f90bf89
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Http/Controllers/Api/CompoundResourceController.php

+ 1
- 1
app/Http/Controllers/Api/CompoundResourceController.php Ver fichero

@@ -442,7 +442,7 @@ class CompoundResourceController extends BaseController
else{

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

//sanitize compound number to return only integer
$num = filter_var($compound['kpd'], FILTER_SANITIZE_NUMBER_INT);

Cargando…
Cancelar
Guardar