Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
5c5a7d59
Commit
5c5a7d59
authored
Feb 12, 2025
by
Yvon Kerdoncuff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in rec app, enable vendor ref sorting by moving it from tooltip to new column
parent
97e2cf85
Pipeline
#4124
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
reception_produits.js
reception/static/js/reception_produits.js
+20
-17
No files found.
reception/static/js/reception_produits.js
View file @
5c5a7d59
...
...
@@ -527,16 +527,18 @@ 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 tooltip-lg tt_twolines">Code barre : '
+
display_barcode
+
' Réf. fournisseur : '
+
supplier_code
+
'</span> </div>'
;
+
' <span class="tooltiptext tooltip-lg">Code barre : '
+
display_barcode
+
'</span> </div>'
;
}
},
{
data
:
"supplier_code"
,
title
:
"Réf. fournisseur"
,
className
:
"dt-body-center"
,
width
:
"10%"
,
render
:
function
(
data
)
{
return
data
===
false
?
""
:
data
;
}
},
{
data
:
"product_uom.1"
,
...
...
@@ -612,17 +614,10 @@ 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 tooltip-lg tt_twolines">Code barre : '
+
display_barcode
+
' Réf. fournisseur : '
+
supplier_code
+
'</span> </div>'
;
+
' <span class="tooltiptext tooltip-lg">Code barre : '
+
display_barcode
+
'</span> </div>'
;
if
(
full
.
supplier_shortage
)
{
display
+=
' <div class="tooltip"><i class="fas fa-info-circle"></i>'
...
...
@@ -633,6 +628,14 @@ function initLists() {
return
display
;
}
},
{
data
:
"supplier_code"
,
title
:
"Réf. fournisseur"
,
className
:
"dt-body-center"
,
width
:
"10%"
,
render
:
function
(
data
)
{
return
data
===
false
?
""
:
data
;
}
},
{
data
:
"product_uom.1"
,
title
:
"Unité vente"
,
className
:
"dt-body-center"
,
orderable
:
false
,
width
:
"5%"
},
{
data
:
"product_qty"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment