Fixes for error 500 in order and fix layout when updating changed services

This commit is contained in:
Deon George 2022-07-25 23:24:45 +10:00
parent 5297ae8a62
commit 3ff7bf1571
2 changed files with 8 additions and 7 deletions

View File

@ -105,7 +105,8 @@ class OrderController extends Controller
$so->site_id = config('site')->site_id;
$so->product_id = $po->id;
$so->order_status = 'ORDER-SUBMIT';
$so->orderby_id = Auth::id();
$so->ordered_by = Auth::id();
$so->active = FALSE;
$so->model = $order ? get_class($order) : NULL;
if ($order && $order->order_info) {

View File

@ -14,7 +14,7 @@
<!-- $o = App\Models\Service::class -->
@section('main-content')
<div class="row">
<div class="col-6">
<div class="col-8">
<form role="form" method="POST" enctype="multipart/form-data">
<div class="card card-dark">
{{ csrf_field() }}
@ -25,7 +25,7 @@
<div class="card-body">
<div class="row">
<div class="col-3">
<div class="col-12">
<!-- SERVICE NUMBER -->
<div class="form-group">
<label for="service_number" class="col-form-label text-right">Service Number</label>
@ -41,7 +41,7 @@
</div>
<div class="row">
<div class="col-3">
<div class="col-12">
<!-- PRODUCT -->
<div class="form-group has-validation">
<label for="product_id">Type</label>
@ -70,7 +70,7 @@
</div>
<div class="row">
<div class="col-3">
<div class="col-12">
<!-- CHANGE DATE -->
<div class="form-group has-validation">
<label for="start_at" class="col-form-label text-right">Change Date</label>
@ -92,7 +92,7 @@
</div>
<div class="row">
<div class="col-3">
<div class="col-6">
<!-- CHANGE FEE -->
<div class="form-group has-validation">
<label for="change_fee" class="col-form-label text-right">Change Fee</label>
@ -123,7 +123,7 @@
</div>
</form>
</div>
<div class="col-6">
<div class="col-4">
@include('a.service.widgets.internal')
</div>
</div>