Commit 1066370a by Damien Moulard Committed by Alexis Aoun

npa column on the right

parent 7ab25c7d
...@@ -1033,16 +1033,6 @@ function prepare_datatable_columns() { ...@@ -1033,16 +1033,6 @@ function prepare_datatable_columns() {
title: "Produit" title: "Produit"
}, },
{ {
data: "purchase_ok",
title: `NPA`,
className: "dt-body-center",
orderable: false,
render: function (data) {
return `<input type="checkbox" class="product_npa_cb" value="purchase_ok" ${data ? '' : 'checked'}>`;
},
width: "4%"
},
{
data: "qty_available", data: "qty_available",
title: "Stock", title: "Stock",
className: "dt-body-center", className: "dt-body-center",
...@@ -1126,6 +1116,17 @@ function prepare_datatable_columns() { ...@@ -1126,6 +1116,17 @@ function prepare_datatable_columns() {
width: "4%" width: "4%"
}); });
columns.push({
data: "purchase_ok",
title: `NPA`,
className: "dt-body-center",
orderable: false,
render: function (data) {
return `<input type="checkbox" class="product_npa_cb" value="purchase_ok" ${data ? '' : 'checked'}>`;
},
width: "4%"
});
return columns; return columns;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment