FIX_FILEHISTORY

This commit is contained in:
velz 2025-07-09 12:59:37 +05:30
parent 0eeab18d95
commit 48f0c8f499
2 changed files with 5 additions and 4 deletions

View File

@ -1325,7 +1325,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
@ -1407,7 +1407,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();
}
@ -1472,7 +1472,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"
];