partial update opnames and detail table
This commit is contained in:
18
resources/js/warehouse_management/opnames/index.js
Normal file
18
resources/js/warehouse_management/opnames/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
$.ajaxSetup({
|
||||
headers: {
|
||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
|
||||
},
|
||||
});
|
||||
let tableContainer = $("#opnames-table");
|
||||
let url = tableContainer.data("url");
|
||||
let table = $("#opnames-table").DataTable({
|
||||
processing: true,
|
||||
serverSide: true,
|
||||
ajax: url,
|
||||
columns: [
|
||||
{ data: "dealer_name", name: "dealer.name" },
|
||||
{ data: "user_name", name: "user.name" },
|
||||
{ data: "opname_date", name: "opname_date" },
|
||||
{ data: "action", name: "action", orderable: false, searchable: false },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user