add deleted_at,by on action delete all module

This commit is contained in:
daengdeni 2023-12-26 13:45:38 +07:00
parent 78756041b8
commit 7f662a70b8
14 changed files with 28 additions and 0 deletions

View File

@ -71,6 +71,8 @@
{
$branch = Branch::find($id);
$branch->delete_by = auth()->user()->id;
$branch->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -70,6 +70,8 @@
public function delete($id)
{
$curency = Currency::find($id);
$curency->delete_by = auth()->user()->id;
$curency->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -88,6 +88,8 @@
public function delete($id)
{
$debitur = Debitur::find($id);
$debitur->delete_by = auth()->user()->id;
$debitur->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -88,6 +88,8 @@
public function delete($id)
{
$detailjaminan = DetailJaminan::find($id);
$detailjaminan->delete_by = auth()->user()->id;
$detailjaminan->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -85,6 +85,8 @@
public function delete($id)
{
$detailpembayaran = DetailPembayaran::find($id);
$detailpembayaran->delete_by = auth()->user()->id;
$detailpembayaran->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -95,6 +95,8 @@
{
// Emit a success event with a message
$detailpenagihan = DetailPenagihan::find($id);
$detailpenagihan->delete_by = auth()->user()->id;
$detailpenagihan->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -96,6 +96,8 @@
{
// Emit a success event with a message
$detailsubrogasi = DetailSubrogasiJamkrindo::find($id);
$detailsubrogasi->delete_by = auth()->user()->id;
$detailsubrogasi->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -70,6 +70,8 @@
public function delete($id)
{
$facility = FacilityType::find($id);
$facility->delete_by = auth()->user()->id;
$facility->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -70,6 +70,8 @@
public function delete($id)
{
$guarantee = GuaranteeType::find($id);
$guarantee->delete_by = auth()->user()->id;
$guarantee->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -49,6 +49,8 @@
public function delete($id)
{
$hapusbuku = HapusBuku::find($id);
$hapusbuku->delete_by = auth()->user()->id;
$hapusbuku->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -109,6 +109,8 @@
{
// Emit a success event with a message
$klaimjamkrindo = KlaimJamkrindo::find($id);
$klaimjamkrindo->delete_by = auth()->user()->id;
$klaimjamkrindo->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -70,6 +70,8 @@
public function delete($id)
{
$loan = LoanType::find($id);
$loan->delete_by = auth()->user()->id;
$loan->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -108,6 +108,8 @@
public function delete($id)
{
$rekening = Rekening::find($id);
$rekening->delete_by = auth()->user()->id;
$rekening->deleted_at = now();
$approval = [
'method' => 'delete',

View File

@ -155,6 +155,8 @@
public function delete($id)
{
$subrogasi = SubrogasiJamkrindo::find($id);
$subrogasi->delete_by = auth()->user()->id;
$subrogasi->deleted_at = now();
$approval = [
'method' => 'delete',