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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
reception_index.js
reception/static/js/reception_index.js
+1
-0
reception_produits.js
reception/static/js/reception_produits.js
+16
-11
No files found.
reception/static/js/reception_index.js
View file @
fd9030f4
...
...
@@ -288,6 +288,7 @@ function display_grouped_orders() {
if
(
table_orders
!==
null
)
{
var
display_something
=
true
;
$
(
'#groups_items'
).
empty
();
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) {
update_distant_order
(
productToEdit
.
id_po
);
}
if
(
addition
)
{
if
(
addition
)
{
let
row
=
table_processed
.
row
(
$
(
'#'
+
productToEdit
.
product_id
[
0
]));
remove_from_processed
(
row
,
productToEdit
);
}
...
...
@@ -1214,23 +1215,26 @@ function send() {
error_report_data
.
group_amount_total
+=
orders
[
i
].
amount_total
;
error_report_data
.
orders
.
push
(
orders
[
i
]);
}
//Create list of articl with no barcode
no_barcode_list
=
[];
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
==
""
))
{
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
=
{
"order"
:
orders
[
order_data
[
'id_po'
]],
"no_barcode_list"
:
no_barcode_list
}
};
// Send of articl with no barcode to mail send
if
(
no_barcode_list
.
length
>
0
){
if
(
no_barcode_list
.
length
>
0
)
{
$
.
ajax
({
type
:
"POST"
,
url
:
"../send_mail_no_barcode"
,
...
...
@@ -1244,7 +1248,7 @@ function send() {
}
});
}
// Send request for error report
$
.
ajax
({
type
:
"POST"
,
...
...
@@ -1302,10 +1306,11 @@ 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'
);
let
textNode
=
document
.
createTextNode
(
no_barcode_list
[
i
]);
node
.
appendChild
(
textNode
);
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