M3 Integration fixes
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
@extends('m3::liberty-theme.layout.main')
|
||||
@section('title')
|
||||
Add: Distribution whs addresses
|
||||
@endsection
|
||||
@section('content')
|
||||
<!-- /.row -->
|
||||
<div class="container-fluid px-4">
|
||||
<h3 class="mt-2">Add: Distribution whs addresses</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
{{-- <div class="card-header">
|
||||
<h4>Add Ship-to Address</h4>
|
||||
</div> --}}
|
||||
<div class="card-body">
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ route('m3.ship-to.store') }}">
|
||||
@csrf
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-a5f61985b0">Customer Number</label>
|
||||
<input type="text" class="form-control" name="AUSTCN" value="{{ old('AUSTCN') }}"
|
||||
maxlength="11" id="sonar-input-a5f61985b0">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-20156147e6">Company Name •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHNM" value="{{ old('AUSHSHNM') }}"
|
||||
required maxlength="36" id="sonar-input-20156147e6">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-709c1e07ef">Address 1 •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA1" value="{{ old('AUSHSHA1') }}"
|
||||
required maxlength="36" id="sonar-input-709c1e07ef">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-e3787f959d">Address 2 •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA2" value="{{ old('AUSHSHA2') }}"
|
||||
required maxlength="36" id="sonar-input-e3787f959d">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-5bbfb65f3b">Address 3</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA3" value="{{ old('AUSHSHA3') }}"
|
||||
maxlength="36" id="sonar-input-5bbfb65f3b">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-e7a28e585b">Address 4</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA4" value="{{ old('AUSHSHA4') }}"
|
||||
maxlength="36" id="sonar-input-e7a28e585b">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-0620339934">City •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHCI" value="{{ old('AUSHSHCI') }}"
|
||||
required maxlength="20" id="sonar-input-0620339934">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-select-a5f61985b0">State •</label>
|
||||
<select class="form-select" name="AUSHSHST" required id="sonar-select-a5f61985b0">
|
||||
<option value="">Select a state</option>
|
||||
@foreach ($states as $code => $name)
|
||||
<option value="{{ $code }}"
|
||||
{{ old('AUSHSHST') == $code ? 'selected' : '' }}>
|
||||
{{ $name }} ({{ $code }})
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-2ed60d69e4">Zip Code •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHZP" value="{{ old('AUSHSHZP') }}"
|
||||
required maxlength="10" id="sonar-input-2ed60d69e4">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-d95b035dcf">Country Code •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHCT" value="{{ old('AUSHSHCT') }}"
|
||||
required maxlength="3" id="sonar-input-d95b035dcf">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-3912060202">Warehouse •</label>
|
||||
<input type="text" class="form-control" name="AUSHWHS" value="{{ old('AUSHWHS') }}"
|
||||
required maxlength="3" id="sonar-input-3912060202">
|
||||
</div>
|
||||
<div class="form-group mt-3 mb-2">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
<a href="{{ route('m3.ship-to.index') }}" class="btn btn-secondary">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,100 @@
|
||||
@extends('m3::liberty-theme.layout.main')
|
||||
@section('title')
|
||||
Edit Distribution whs addresses
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="container-fluid px-4">
|
||||
<h3 class="mt-2">Edit Distribution whs addresses</h3>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
{{-- <div class="card-header">
|
||||
<h4>Edit Ship-to Address</h4>
|
||||
</div> --}}
|
||||
<div class="card-body">
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form method="POST" action="{{ url('/ship-to/'. trim($shipTo->AUSHSHZP) . '/' . trim($shipTo->AUSHWHS)) }}">
|
||||
@csrf
|
||||
@method('PUT')
|
||||
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-9efe270e0a">Customer Number</label>
|
||||
<input type="text" class="form-control" name="AUSTCN"
|
||||
value="{{ trim($shipTo->AUSTCN) }}" id="sonar-input-9efe270e0a">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-7c20b39e9b">Company Name •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHNM"
|
||||
value="{{ old('AUSHSHNM', trim($shipTo->AUSHSHNM)) }}" required maxlength="36" id="sonar-input-7c20b39e9b">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-2f1f7536fe">Address 1 •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA1"
|
||||
value="{{ old('AUSHSHA1', trim($shipTo->AUSHSHA1)) }}" required maxlength="36" id="sonar-input-2f1f7536fe">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-1709fb5d67">Address 2 •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA2"
|
||||
value="{{ old('AUSHSHA2', trim($shipTo->AUSHSHA2)) }}" required maxlength="36" id="sonar-input-1709fb5d67">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-fb35089be3">Address 3</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA3"
|
||||
value="{{ old('AUSHSHA3', trim($shipTo->AUSHSHA3)) }}" maxlength="36" id="sonar-input-fb35089be3">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-5452b56d11">Address 4</label>
|
||||
<input type="text" class="form-control" name="AUSHSHA4"
|
||||
value="{{ old('AUSHSHA4', trim($shipTo->AUSHSHA4)) }}" maxlength="36" id="sonar-input-5452b56d11">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-a1059c7901">City •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHCI"
|
||||
value="{{ old('AUSHSHCI', trim($shipTo->AUSHSHCI)) }}" required maxlength="20" id="sonar-input-a1059c7901">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-select-9efe270e0a">State •</label>
|
||||
<select class="form-select" name="AUSHSHST" required id="sonar-select-9efe270e0a">
|
||||
<option value="">Select a state</option>
|
||||
@foreach ($states as $code => $name)
|
||||
<option value="{{ $code }}"
|
||||
{{ old('AUSHSHST', $shipTo->AUSHSHST) == $code ? 'selected' : '' }}>
|
||||
{{ $name }} ({{ $code }})
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-07cebce94f">Zip Code</label>
|
||||
<input type="text" class="form-control" value="{{ trim($shipTo->AUSHSHZP) }}" readonly id="sonar-select-9efe270e0a">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-8b496b4c51">Country Code •</label>
|
||||
<input type="text" class="form-control" name="AUSHSHCT"
|
||||
value="{{ old('AUSHSHCT', trim($shipTo->AUSHSHCT)) }}" required maxlength="3" id="sonar-input-8b496b4c51">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="sonar-input-2b51446d4a">Warehouse</label>
|
||||
<input type="text" class="form-control" value="{{ $shipTo->AUSHWHS }}" readonly id="sonar-input-2b51446d4a">
|
||||
</div>
|
||||
|
||||
<div class="form-group mt-3 mb-2">
|
||||
<button type="submit" class="btn btn-primary">Update</button>
|
||||
<a href="{{ route('m3.ship-to.index') }}" class="btn btn-secondary">Cancel</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -0,0 +1,107 @@
|
||||
@extends('m3::liberty-theme.layout.main')
|
||||
@section('title')
|
||||
Distribution whs addresses
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="container-fluid mt-6 pt-6 px-4">
|
||||
<h3 class="mt-4">Distribution whs addresses</h3>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
{{-- <h4 class="float-left">Ship-to Addresses</h4> --}}
|
||||
<a href="{{ route('m3.ship-to.create') }}" class="btn btn-primary float-right">Add New</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if (session('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ session('success') }}
|
||||
</div>
|
||||
@endif
|
||||
<div class="container-fluid table-responsive">
|
||||
|
||||
<table class="table table-bordered data-table" style="width:100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Customer Number</th>
|
||||
<th>Company Name</th>
|
||||
<th>Address</th>
|
||||
<th>City</th>
|
||||
<th>State</th>
|
||||
<th>Zip</th>
|
||||
<th>Country</th>
|
||||
<th>Warehouse</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var table = $('.data-table').DataTable({
|
||||
processing: true,
|
||||
responsive: true,
|
||||
serverSide: true,
|
||||
ajax: "{{ route('m3.ship-to.index') }}",
|
||||
columns: [{
|
||||
data: 'checkbox',
|
||||
name: 'checkbox',
|
||||
orderable: false,
|
||||
searchable: false
|
||||
},
|
||||
{
|
||||
data: 'AUSTCN',
|
||||
name: 'AUSTCN'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHNM',
|
||||
name: 'AUSHSHNM'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHA1',
|
||||
name: 'AUSHSHA1'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHCI',
|
||||
name: 'AUSHSHCI'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHST',
|
||||
name: 'AUSHSHST'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHZP',
|
||||
name: 'AUSHSHZP'
|
||||
},
|
||||
{
|
||||
data: 'AUSHSHCT',
|
||||
name: 'AUSHSHCT'
|
||||
},
|
||||
{
|
||||
data: 'AUSHWHS',
|
||||
name: 'AUSHWHS'
|
||||
},
|
||||
{
|
||||
data: 'action',
|
||||
name: 'action',
|
||||
orderable: false,
|
||||
searchable: false
|
||||
}
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user