partial update detail opnames page
This commit is contained in:
20
resources/js/warehouse_management/opnames/detail.js
Normal file
20
resources/js/warehouse_management/opnames/detail.js
Normal file
@@ -0,0 +1,20 @@
|
||||
$.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" },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user