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
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
Alexis AOUN
third-party
Commits
a7a0adfb
Commit
a7a0adfb
authored
Aug 02, 2021
by
Alexis Aoun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lint
parent
9c74eac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
reception_produits.js
reception/static/js/reception_produits.js
+3
-2
No files found.
reception/static/js/reception_produits.js
View file @
a7a0adfb
...
@@ -97,7 +97,7 @@ function select_product_from_bc(barcode) {
...
@@ -97,7 +97,7 @@ function select_product_from_bc(barcode) {
}
}
if
(
foundProduct
.
data
!==
null
)
{
if
(
foundProduct
.
data
!==
null
)
{
if
(
foundProduct
.
data
.
product_uom
[
0
]
==
21
)
{
//if qty is in weight
if
(
foundProduct
.
data
.
product_uom
[
0
]
==
21
)
{
//if qty is in weight
if
(
scannedProduct
.
rule
===
'weight'
)
{
if
(
scannedProduct
.
rule
===
'weight'
)
{
editing_product
=
foundProduct
.
data
;
editing_product
=
foundProduct
.
data
;
editProductInfo
(
foundProduct
.
data
,
scannedProduct
.
qty
);
editProductInfo
(
foundProduct
.
data
,
scannedProduct
.
qty
);
...
@@ -177,8 +177,9 @@ function update_distant_orders() {
...
@@ -177,8 +177,9 @@ function update_distant_orders() {
function
price_to_weight_confirmed_callback
(
foundProduct
,
scannedProduct
)
{
function
price_to_weight_confirmed_callback
(
foundProduct
,
scannedProduct
)
{
return
function
price_to_weight_confirmed
()
{
return
function
price_to_weight_confirmed
()
{
let
newQty
=
null
;
let
newQty
=
null
;
if
(
priceToWeightIsCorrect
)
{
if
(
priceToWeightIsCorrect
)
{
newQty
=
scannedProduct
.
qty
;
newQty
=
scannedProduct
.
qty
;
}
else
{
}
else
{
let
tmp
=
Number
((
scannedProduct
.
value
/
document
.
getElementById
(
"new_price_to_weight"
).
value
).
toFixed
(
3
));
let
tmp
=
Number
((
scannedProduct
.
value
/
document
.
getElementById
(
"new_price_to_weight"
).
value
).
toFixed
(
3
));
...
...
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