Commit 5b6883fb by Administrator

Merge branch '5645-SUPERCAFOUTCH-reception-ajout-ref-fournisseur-en-tooltip' into 'dev_cooperatic'

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

See merge request !258
parents db9c1ce2 950cf853
Pipeline #3239 failed with stage
in 1 minute 4 seconds
...@@ -525,10 +525,16 @@ function initLists() { ...@@ -525,10 +525,16 @@ function initLists() {
if ('barcode' in full) { if ('barcode' in full) {
display_barcode = full.barcode; 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 return '<div class="tooltip">' + data
+ ' <span class="tooltiptext tt_twolines">Code barre : ' + ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode + '</span> </div>'; + display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
} }
}, },
{ data:"product_uom.1", { data:"product_uom.1",
...@@ -604,10 +610,17 @@ function initLists() { ...@@ -604,10 +610,17 @@ function initLists() {
if ('barcode' in full) { if ('barcode' in full) {
display_barcode = full.barcode; 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 let display = '<div class="tooltip">' + data
+ ' <span class="tooltiptext tt_twolines">Code barre : ' + ' <span class="tooltiptext tooltip-lg tt_twolines">Code barre : '
+ display_barcode + '</span> </div>'; + display_barcode
+ ' Réf. fournisseur : '
+ supplier_code + '</span> </div>';
if (full.supplier_shortage) { if (full.supplier_shortage) {
display += ' <div class="tooltip"><i class="fas fa-info-circle"></i>' 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