Commit 9f318cd4 by Arnaud B Committed by Alexis Aoun

Affichage de la qté commandée dans la colonne qté lors de la réception

parent dc13d3eb
...@@ -287,7 +287,6 @@ function initLists() { ...@@ -287,7 +287,6 @@ function initLists() {
dom: 'lrtip', // Remove the search input from that table dom: 'lrtip', // Remove the search input from that table
language: {url : '/static/js/datatables/french.json'} language: {url : '/static/js/datatables/french.json'}
}); });
// Init table for processed content // Init table for processed content
table_processed = $('#table_processed').DataTable({ table_processed = $('#table_processed').DataTable({
data: list_processed, data: list_processed,
...@@ -323,8 +322,13 @@ function initLists() { ...@@ -323,8 +322,13 @@ function initLists() {
{ {
data:"product_qty", data:"product_qty",
title:"Qté", title:"Qté",
className:"dt-body-center", className:"dt-head-center dt-body-center",
visible: (reception_status == "False") visible: (reception_status == "False"),
render: function (data, type, full) {
let disp = [full.product_qty, (full.old_qty !== undefined)?full.old_qty:full.product_qty].join("/");
return disp;
},
orderable: false
}, },
{ {
data:"price_unit", data:"price_unit",
......
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