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
b01f1a25
Commit
b01f1a25
authored
May 25, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix debounce func & lint
parent
63cba6a6
Pipeline
#2220
passed with stage
in 1 minute 45 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
shelf_inventory.js
shelfs/static/js/shelf_inventory.js
+5
-3
No files found.
shelfs/static/js/shelf_inventory.js
View file @
b01f1a25
...
...
@@ -206,7 +206,7 @@ function select_product_from_bc(barcode) {
}
}
else
{
console
.
log
(
'Code barre introuvable'
);
alert
(
"Le produit bippé n'est pas enregistré dans ce rayon."
)
alert
(
"Le produit bippé n'est pas enregistré dans ce rayon."
)
;
}
}
else
if
(
barcode
==
editing_item
.
barcode
&&
qty
)
{
// We scan the same product as the current one
...
...
@@ -220,6 +220,8 @@ function select_product_from_bc(barcode) {
editing_item
.
qty
=
get_added_qties_sum
(
editing_item
);
edition_input
.
val
(
editing_item
.
qty
);
}
return
null
;
}
/*
...
...
@@ -576,7 +578,7 @@ function initLists() {
</div>`
,
className
:
"dt-body-center"
,
orderable
:
false
,
render
:
function
(
data
)
{
render
:
function
()
{
return
`<input type="checkbox" class="select_product_cb" />`
;
},
width
:
"4%"
});
...
...
@@ -1265,7 +1267,7 @@ function init() {
//access `event.code` - barcode data
var
barcode
=
event
.
code
;
debounce
(
barcode_analyzer
);
// Avoid concurrent barcode analysing
debounce
(
()
=>
barcode_analyzer
(
barcode
));
// Avoid concurrent barcode analysing
});
}
...
...
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