From 9efbcbbd5eec977e4ca4588b9beacba62b592e22 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 28 Feb 2024 11:04:42 +0000 Subject: [PATCH] Added min_amt to licenses Signed-off-by: snipe --- app/Http/Controllers/Licenses/LicensesController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Licenses/LicensesController.php b/app/Http/Controllers/Licenses/LicensesController.php index a818cf4231..c55181c518 100755 --- a/app/Http/Controllers/Licenses/LicensesController.php +++ b/app/Http/Controllers/Licenses/LicensesController.php @@ -99,6 +99,7 @@ class LicensesController extends Controller $license->category_id = $request->input('category_id'); $license->termination_date = $request->input('termination_date'); $license->user_id = Auth::id(); + $license->min_amt = $request->input('min_amt'); if ($license->save()) { return redirect()->route('licenses.index')->with('success', trans('admin/licenses/message.create.success')); @@ -176,6 +177,7 @@ class LicensesController extends Controller $license->manufacturer_id = $request->input('manufacturer_id'); $license->supplier_id = $request->input('supplier_id'); $license->category_id = $request->input('category_id'); + $license->min_amt = $request->input('min_amt'); if ($license->save()) { return redirect()->route('licenses.show', ['license' => $licenseId])->with('success', trans('admin/licenses/message.update.success'));