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
fd9030f4
Commit
fd9030f4
authored
Jul 12, 2021
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 'error' found by ESLint and auto modify warnings
parent
e425a6e9
Pipeline
#1203
passed with stage
in 1 minute 21 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
reception_index.js
reception/static/js/reception_index.js
+1
-0
reception_produits.js
reception/static/js/reception_produits.js
+10
-5
No files found.
reception/static/js/reception_index.js
View file @
fd9030f4
...
@@ -288,6 +288,7 @@ function display_grouped_orders() {
...
@@ -288,6 +288,7 @@ function display_grouped_orders() {
if
(
table_orders
!==
null
)
{
if
(
table_orders
!==
null
)
{
var
display_something
=
true
;
var
display_something
=
true
;
$
(
'#groups_items'
).
empty
();
$
(
'#groups_items'
).
empty
();
let
groups_display_content
=
"<ul>"
;
let
groups_display_content
=
"<ul>"
;
...
...
reception/static/js/reception_produits.js
View file @
fd9030f4
...
@@ -948,8 +948,9 @@ function editProductInfo (productToEdit, value = null, batch = false) {
...
@@ -948,8 +948,9 @@ function editProductInfo (productToEdit, value = null, batch = false) {
update_distant_order
(
productToEdit
.
id_po
);
update_distant_order
(
productToEdit
.
id_po
);
}
}
if
(
addition
)
{
if
(
addition
)
{
let
row
=
table_processed
.
row
(
$
(
'#'
+
productToEdit
.
product_id
[
0
]));
let
row
=
table_processed
.
row
(
$
(
'#'
+
productToEdit
.
product_id
[
0
]));
remove_from_processed
(
row
,
productToEdit
);
remove_from_processed
(
row
,
productToEdit
);
}
}
...
@@ -1219,18 +1220,21 @@ function send() {
...
@@ -1219,18 +1220,21 @@ function send() {
no_barcode_list
=
[];
no_barcode_list
=
[];
for
(
var
i
=
0
;
i
<
list_processed
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
list_processed
.
length
;
i
++
)
{
if
(
list_processed
[
i
].
product_qty
!=
0
&&
(
list_processed
[
i
].
barcode
==
false
||
list_processed
[
i
].
barcode
==
null
||
list_processed
[
i
].
barcode
==
""
))
{
if
(
list_processed
[
i
].
product_qty
!=
0
&&
(
list_processed
[
i
].
barcode
==
false
||
list_processed
[
i
].
barcode
==
null
||
list_processed
[
i
].
barcode
==
""
))
{
no_barcode_list
.
push
([
list_processed
[
i
][
"product_id"
][
0
],
list_processed
[
i
][
"product_id"
][
1
]]);
no_barcode_list
.
push
([
list_processed
[
i
][
"product_id"
][
0
],
list_processed
[
i
][
"product_id"
][
1
]
]);
}
}
}
}
data_send_no_barcode
=
{
data_send_no_barcode
=
{
"order"
:
orders
[
order_data
[
'id_po'
]],
"order"
:
orders
[
order_data
[
'id_po'
]],
"no_barcode_list"
:
no_barcode_list
"no_barcode_list"
:
no_barcode_list
}
};
// Send of articl with no barcode to mail send
// Send of articl with no barcode to mail send
if
(
no_barcode_list
.
length
>
0
){
if
(
no_barcode_list
.
length
>
0
)
{
$
.
ajax
({
$
.
ajax
({
type
:
"POST"
,
type
:
"POST"
,
url
:
"../send_mail_no_barcode"
,
url
:
"../send_mail_no_barcode"
,
...
@@ -1303,9 +1307,10 @@ function send() {
...
@@ -1303,9 +1307,10 @@ function send() {
}
}
}
}
for
(
var
i
=
0
;
i
<
no_barcode_list
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
no_barcode_list
.
length
;
i
++
)
{
var
node
=
document
.
createElement
(
'li'
);
var
node
=
document
.
createElement
(
'li'
);
let
textNode
=
document
.
createTextNode
(
no_barcode_list
[
i
]);
let
textNode
=
document
.
createTextNode
(
no_barcode_list
[
i
]);
node
.
appendChild
(
textNode
);
node
.
appendChild
(
textNode
);
document
.
getElementById
(
'barcodesEmpty_list'
).
appendChild
(
node
);
document
.
getElementById
(
'barcodesEmpty_list'
).
appendChild
(
node
);
...
...
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