optimize dockerfile and copy js library used
This commit is contained in:
@@ -40,5 +40,27 @@
|
||||
@endsection
|
||||
|
||||
@section('javascripts')
|
||||
<script src="{{ asset('js/warehouse_management/opnames/detail.js') }}"></script>
|
||||
<script>
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
|
||||
},
|
||||
});
|
||||
let tableContainer = $("#opname-detail-table");
|
||||
let url = tableContainer.data("url");
|
||||
let table = $("#opname-detail-table").DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: url,
|
||||
columns: [
|
||||
{ data: "opname_date", name: "opname_date" },
|
||||
{ data: "user_name", name: "user.name" },
|
||||
{ data: "product_name", name: "product.name" },
|
||||
{ data: "system_stock", name: "system_stock" },
|
||||
{ data: "physical_stock", name: "physical_stock" },
|
||||
{ data: "difference", name: "difference" },
|
||||
],
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user