update parameter branch fixing double request approval
This commit is contained in:
parent
a3b916f861
commit
1487305959
@ -63,7 +63,6 @@
|
|||||||
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
||||||
->where('ref', $this->kode)
|
->where('ref', $this->kode)
|
||||||
->where('status', '0')
|
->where('status', '0')
|
||||||
->where('method', 'update')
|
|
||||||
->get()
|
->get()
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
@ -91,7 +90,6 @@
|
|||||||
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
||||||
->where('ref', $this->kode)
|
->where('ref', $this->kode)
|
||||||
->where('status', '0')
|
->where('status', '0')
|
||||||
->where('method', 'create')
|
|
||||||
->get()
|
->get()
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
@ -152,7 +150,6 @@
|
|||||||
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
$is_approval = Approval::where('menu', 'Parameter Cabang')
|
||||||
->where('ref', $branch->kode)
|
->where('ref', $branch->kode)
|
||||||
->where('status', '0')
|
->where('status', '0')
|
||||||
->where('method', 'delete')
|
|
||||||
->get()
|
->get()
|
||||||
->first();
|
->first();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user