Commit 79cebb4d by François C.

Adaptations lisibilité colonnes

parent d4477c71
Pipeline #2177 passed with stage
in 1 minute 27 seconds
...@@ -355,6 +355,10 @@ ...@@ -355,6 +355,10 @@
- RECEPTION_SHELF_LABEL_PRINT = True - RECEPTION_SHELF_LABEL_PRINT = True
- DISPLAY_COL_AUTRES = True
Display "Autres" column (showing select with action "rupture fournisseur")
- COEFF_MAG_ID = 1 - COEFF_MAG_ID = 1
DB coeff id, needed to compute product shelf price DB coeff id, needed to compute product shelf price
......
...@@ -252,5 +252,9 @@ hr { ...@@ -252,5 +252,9 @@ hr {
#main_content {width: 100%;} #main_content {width: 100%;}
.select_product_action { .select_product_action {
max-width: 15px; max-width: 5px;
}
.toProcess_line_edit, .toProcess_line_valid {
min-width: 11px;
} }
\ No newline at end of file
...@@ -355,7 +355,8 @@ function initLists() { ...@@ -355,7 +355,8 @@ function initLists() {
// In case of group orders, add "Order" as first column for ordering // In case of group orders, add "Order" as first column for ordering
if (Object.keys(orders).length > 1) { if (Object.keys(orders).length > 1) {
columns_to_process.push({ columns_to_process.push({
data:"order_key", title: "Comm- ande", className: "dt-body-center" data:"order_key", title: "n°", className: "dt-body-center",
width: "20px"
}); });
} }
...@@ -394,18 +395,18 @@ function initLists() { ...@@ -394,18 +395,18 @@ function initLists() {
}, },
{ {
title:"Editer", title:"Editer",
defaultContent: "<a class='btn' id='toProcess_line_edit' href='#'><i class='far fa-edit'></i></a>", defaultContent: "<a class='btn toProcess_line_edit' href='#'><i class='far fa-edit'></i></a>",
className:"dt-body-center", className:"dt-body-center",
orderable: false orderable: false
}, },
{ {
title:"Valider", title:"Valider",
defaultContent: "<a class='btn' id='toProcess_line_valid' href='#'><i class='far fa-check-square'></i></a>", defaultContent: "<a class='btn toProcess_line_valid' href='#'><i class='far fa-check-square'></i></a>",
className:"dt-body-center", className:"dt-body-center",
orderable: false orderable: false
}, },
{ {
title:"Autres", title:"",
defaultContent: "<select class='select_product_action'><option value=''></option><option value='supplier_shortage'>Rupture fournisseur</option></select>", defaultContent: "<select class='select_product_action'><option value=''></option><option value='supplier_shortage'>Rupture fournisseur</option></select>",
className:"dt-body-center", className:"dt-body-center",
orderable: false, orderable: false,
...@@ -532,7 +533,7 @@ function initLists() { ...@@ -532,7 +533,7 @@ function initLists() {
/* Listeners */ /* Listeners */
// Direct valid from to_process // Direct valid from to_process
$('#table_to_process tbody').on('click', 'a#toProcess_line_valid', function () { $('#table_to_process tbody').on('click', 'a.toProcess_line_valid', function () {
if (is_time_to('reception_direct_valid_order_line', 500)) { if (is_time_to('reception_direct_valid_order_line', 500)) {
try { try {
let row = table_to_process.row($(this).parents('tr')); let row = table_to_process.row($(this).parents('tr'));
...@@ -565,7 +566,7 @@ function initLists() { ...@@ -565,7 +566,7 @@ function initLists() {
}); });
// Edit to_process line // Edit to_process line
$('#table_to_process tbody').on('click', 'a#toProcess_line_edit', function () { $('#table_to_process tbody').on('click', 'a.toProcess_line_edit', function () {
try { try {
// Prevent editing mutiple lines at a time // Prevent editing mutiple lines at a time
if (editing_product == null) { if (editing_product == null) {
......
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