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->site_id = config('site')->site_id;
$so->product_id = $po->id; $so->product_id = $po->id;
$so->order_status = 'ORDER-SUBMIT'; $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; $so->model = $order ? get_class($order) : NULL;
if ($order && $order->order_info) { if ($order && $order->order_info) {

View File

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