root 4 vuotta sitten
vanhempi
commit
20b7aa1734
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      app/Http/Controllers/Api/CompoundResourceController.php

+ 1
- 1
app/Http/Controllers/Api/CompoundResourceController.php Näytä tiedosto

@@ -396,7 +396,7 @@ class CompoundResourceController extends BaseController
if($modul == '02')
{
//check if theres no 001, start fresh with 0001
if (empty(Compound::where('jenis_n', $jenis)->where('non', $tag.'0001')->first())) {
if (empty(Compound::where('jenis_n', $jenis)->where('non', $tag.'0001')->withTrashed()->first())) {

$num = '0001';


Loading…
Peruuta
Tallenna