This commit is contained in:
Jagad R R
2025-03-06 16:24:55 +07:00
parent c3a488b143
commit d2ff42f58b
4 changed files with 53 additions and 29 deletions
@@ -107,6 +107,18 @@ class BudgetControlController extends Controller
'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' => null,
'status' => 'Assigned',
]);
session()->flash('success', 'Budget has been added or updated successfully');
return redirect()->route('budget_control');
}