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
f7e55202
Commit
f7e55202
authored
Jun 10, 2021
by
Damien Moulard
Committed by
Alexis Aoun
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quickfix
parent
16387e04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
+1
-4
orders_helper.js
orders/static/js/orders_helper.js
+1
-4
No files found.
orders/static/js/orders_helper.js
View file @
f7e55202
...
@@ -23,8 +23,7 @@ function reset_data() {
...
@@ -23,8 +23,7 @@ function reset_data() {
order_doc
=
{
order_doc
=
{
_id
:
null
,
_id
:
null
,
products
:
[],
products
:
[],
selected_suppliers
:
[],
selected_suppliers
:
[]
selected_rows
:
[]
};
};
}
}
...
@@ -669,7 +668,6 @@ function update_order_selection_screen() {
...
@@ -669,7 +668,6 @@ function update_order_selection_screen() {
order_doc
=
doc
;
order_doc
=
doc
;
products
=
order_doc
.
products
;
products
=
order_doc
.
products
;
selected_suppliers
=
order_doc
.
selected_suppliers
;
selected_suppliers
=
order_doc
.
selected_suppliers
;
selected_rows
=
order_doc
.
selected_rows
;
update_main_screen
();
update_main_screen
();
switch_screen
();
switch_screen
();
...
@@ -746,7 +744,6 @@ function create_order() {
...
@@ -746,7 +744,6 @@ function create_order() {
function
update_order
()
{
function
update_order
()
{
order_doc
.
products
=
products
;
order_doc
.
products
=
products
;
order_doc
.
selected_suppliers
=
selected_suppliers
;
order_doc
.
selected_suppliers
=
selected_suppliers
;
order_doc
.
selected_rows
=
selected_rows
;
dbc
.
put
(
order_doc
,
function
callback
(
err
,
result
)
{
dbc
.
put
(
order_doc
,
function
callback
(
err
,
result
)
{
if
(
!
err
&&
result
!==
undefined
)
{
if
(
!
err
&&
result
!==
undefined
)
{
...
...
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