Update BudgetControlController.php
This commit is contained in:
@@ -124,18 +124,6 @@ class BudgetControlController extends Controller
|
|||||||
'status' => 'Assigned',
|
'status' => 'Assigned',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
BudgetControlLog::create([
|
|
||||||
'cabang_id' => $cabang_id,
|
|
||||||
'sender_id' => auth()->user()->id,
|
|
||||||
'receiver_id' => $validated['receiver_id'],
|
|
||||||
'periode_month' => $validated['periode_month'],
|
|
||||||
'periode_year' => $validated['periode_year'],
|
|
||||||
'amount' => $validated['amount'],
|
|
||||||
'remarks' => $validated['remarks'],
|
|
||||||
'closing_at' => $validated['closing_at'],
|
|
||||||
'status' => 'Assigned',
|
|
||||||
]);
|
|
||||||
|
|
||||||
session()->flash('success', 'Budget has been added or updated successfully');
|
session()->flash('success', 'Budget has been added or updated successfully');
|
||||||
return redirect()->route('budget_control');
|
return redirect()->route('budget_control');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user