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
261
Issues
261
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Paul
third-party
Commits
d4300f92
Commit
d4300f92
authored
Jun 29, 2021
by
Alexis Aoun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
f1770131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
reception_produits.js
reception/static/js/reception_produits.js
+1
-5
No files found.
reception/static/js/reception_produits.js
View file @
d4300f92
...
...
@@ -63,7 +63,6 @@ function searchUpdatedProduct() {
// Directly send a line to edition when barcode is read
function
select_product_from_bc
(
barcode
)
{
try
{
if
(
editing_product
==
null
)
{
let
p
=
barcodes
.
get_corresponding_odoo_product
(
barcode
);
...
...
@@ -82,11 +81,10 @@ function select_product_from_bc(barcode) {
}
});
if
(
found
.
data
==
null
)
{
$
.
each
(
list_processed
,
function
(
i
,
e
)
{
if
(
e
.
product_id
[
0
]
==
p
.
data
[
barcodes
[
'keys'
][
'id'
]])
{
found
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
e
));
found
.
data
=
JSON
.
parse
(
JSON
.
stringify
(
e
));
found
.
place
=
'processed'
;
}
});
...
...
@@ -798,10 +796,8 @@ function editProductInfo (productToEdit, value = null) {
var
index
=
searchUpdatedProduct
();
var
firstUpdate
=
false
;
let
newValue
=
value
;
var
addition
=
false
;
// If 'value' parameter not set, get value from edition input
if
(
value
==
null
)
{
newValue
=
parseFloat
(
document
.
getElementById
(
'edition_input'
).
value
.
replace
(
','
,
'.'
));
...
...
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