update parameter rekening fixing double request approval

This commit is contained in:
daengdeni 2024-02-01 10:58:30 +07:00
parent 2024caf5a3
commit a13b51bba7

View File

@ -91,7 +91,6 @@
$is_approval = Approval::where('menu', 'Parameter Rekening') $is_approval = Approval::where('menu', 'Parameter Rekening')
->where('ref', $this->kode) ->where('ref', $this->kode)
->where('status', '0') ->where('status', '0')
->where('method', 'update')
->get() ->get()
->first(); ->first();
@ -118,7 +117,6 @@
$is_approval = Approval::where('menu', 'Parameter Rekening') $is_approval = Approval::where('menu', 'Parameter Rekening')
->where('ref', $this->kode) ->where('ref', $this->kode)
->where('status', '0') ->where('status', '0')
->where('method', 'create')
->get() ->get()
->first(); ->first();
@ -177,7 +175,6 @@
$is_approval = Approval::where('menu', 'Parameter Rekening') $is_approval = Approval::where('menu', 'Parameter Rekening')
->where('ref', $rekening->nomor_rekening) ->where('ref', $rekening->nomor_rekening)
->where('status', '0') ->where('status', '0')
->where('method', 'delete')
->get() ->get()
->first(); ->first();