fix opname default value, show different opname and hide system stock opname
This commit is contained in:
@@ -196,8 +196,13 @@ function initializeDataTable() {
|
||||
},
|
||||
},
|
||||
columnDefs: [
|
||||
{ targets: 0, width: "15%" }, // Opname Date column
|
||||
{ targets: 5, width: "15%", className: "text-center" }, // Action column
|
||||
{ targets: 0, width: "15%" }, // Created At column
|
||||
{ targets: 1, width: "12%" }, // Opname Date column
|
||||
{ targets: 2, width: "15%" }, // Dealer column
|
||||
{ targets: 3, width: "12%" }, // User column
|
||||
{ targets: 4, width: "10%" }, // Status column
|
||||
{ targets: 5, width: "15%", className: "text-center" }, // Stock Info column
|
||||
{ targets: 6, width: "15%", className: "text-center" }, // Action column
|
||||
],
|
||||
columns: [
|
||||
{
|
||||
@@ -225,6 +230,12 @@ function initializeDataTable() {
|
||||
name: "status",
|
||||
orderable: true,
|
||||
},
|
||||
{
|
||||
data: "stock_info",
|
||||
name: "stock_info",
|
||||
orderable: false,
|
||||
searchable: false,
|
||||
},
|
||||
{
|
||||
data: "action",
|
||||
name: "action",
|
||||
@@ -232,7 +243,7 @@ function initializeDataTable() {
|
||||
searchable: false,
|
||||
},
|
||||
],
|
||||
order: [[4, "desc"]], // Order by created_at desc
|
||||
order: [[0, "desc"]], // Order by created_at desc
|
||||
pageLength: 10,
|
||||
responsive: true,
|
||||
ordering: true,
|
||||
|
||||
Reference in New Issue
Block a user