optimize dockerfile and copy js library used

This commit is contained in:
2025-07-14 16:10:52 +07:00
parent 5b14523f84
commit 4b9be55d32
17 changed files with 2439 additions and 174 deletions

View File

@@ -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