add new ststs feature
This commit is contained in:
@@ -196,7 +196,7 @@ class ExpenseController extends BaseController
|
||||
}
|
||||
|
||||
$status = $isDonation ? 'approved' : 'pending';
|
||||
$statusReason = $isDonation ? 'Marked as Donation (non-reimbursable).' : null;
|
||||
$statusReason = $isDonation ? 'Recorded as donation income to the school (non-reimbursable).' : null;
|
||||
|
||||
$db = \Config\Database::connect();
|
||||
$db->transBegin();
|
||||
@@ -399,7 +399,7 @@ class ExpenseController extends BaseController
|
||||
|
||||
if ($isDonation) {
|
||||
$updateData['status'] = 'approved';
|
||||
$updateData['status_reason'] = 'Marked as Donation (non-reimbursable).';
|
||||
$updateData['status_reason'] = 'Recorded as donation income to the school (non-reimbursable).';
|
||||
$updateData['approved_by'] = $userId ?: null;
|
||||
$updateData['reimbursement_id'] = null;
|
||||
} elseif (($expense['category'] ?? '') === 'Donation') {
|
||||
|
||||
Reference in New Issue
Block a user