Commit 950cf853 by Yvon

reception : add supplier code in tooltip ; increase tooltip width so that…

reception : add supplier code in tooltip ; increase tooltip width so that display remains on two lines
parent db9c1ce2
Pipeline #3238 failed with stage
in 1 minute 4 seconds
......@@ -525,10 +525,16 @@ function initLists() {
if ('barcode' in full) {
display_barcode = full.barcode;
}
let supplier_code = "Aucune";
if ('supplier_code' in full && full.supplier_code) {
supplier_code = full.supplier_code;
}
return '<div class="tooltip">' + data
+ ' <span class="tooltiptext tt_twolines">Code barre : '
+ display_barcode + '</span> </div>';
+ ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
}
},
{ data:"product_uom.1",
......@@ -604,10 +610,17 @@ function initLists() {
if ('barcode' in full) {
display_barcode = full.barcode;
}
let supplier_code = "Aucune";
if ('supplier_code' in full && full.supplier_code) {
supplier_code = full.supplier_code;
}
let display = '<div class="tooltip">' + data
+ ' <span class="tooltiptext tt_twolines">Code barre : '
+ display_barcode + '</span> </div>';
+ ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
if (full.supplier_shortage) {
display += ' <div class="tooltip"><i class="fas fa-info-circle"></i>'
......
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