Commit 979f1cd2 by Damien Moulard

quickfix

parent c7ae8642
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment