FIX_FILEHISTORY

This commit is contained in:
velz 2025-07-09 17:22:37 +05:30
parent bb7ffbb997
commit 23967167b0
2 changed files with 5 additions and 4 deletions

View File

@ -1390,7 +1390,7 @@ class EmployeeController extends AdminController
}
//STEP:3 - Update files table status
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated'])->update();
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated','updated_by' => $loggedInUserID])->update();
$this->myLogger->logme('error', '---- files table updated ----');
//FINAL STEP - Update reverse entry in cash_deposite table
@ -1479,7 +1479,7 @@ class EmployeeController extends AdminController
// dd($affectedRows);
$affectedRows = $affectedRows * 2;
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated'])->update();
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated','updated_by' => $loggedInUserID])->update();
}
@ -1546,7 +1546,7 @@ class EmployeeController extends AdminController
// STEP 3:
//update files table status to "truncated"
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated'])->update();
$this->fileModel->where('id', $file_id)->set(['status' => 'truncated','updated_by' => $loggedInUserID])->update();
$this->myLogger->logme('error', 'files table updated');

View File

@ -19,7 +19,8 @@ class FileModel extends Model
"client_id",
"policy_id",
"client_branch_id",
"uploaded_by"
"uploaded_by",
"updated_by"
];