From 93262a51ee23c2c011e5556ab483f8f0f31c6da0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 22 Jan 2008 15:44:20 +0000 Subject: [PATCH] Fehlendes JavaScript zu den Lieferscheinen. --- js/stock_in_out.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 js/stock_in_out.js diff --git a/js/stock_in_out.js b/js/stock_in_out.js new file mode 100644 index 000000000..2ad468740 --- /dev/null +++ b/js/stock_in_out.js @@ -0,0 +1,25 @@ +function open_stock_in_out_window(in_out, row) { + var width = 980; + var height = 600; + var parm = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes"; + + var parts_id = document.getElementsByName("id_" + row)[0].value; + var stock = document.getElementsByName("stock_" + in_out + "_" + row)[0].value; + var do_qty = document.getElementsByName("qty_" + row)[0].value; + var do_unit = document.getElementsByName("unit_" + row)[0].value; + var closed = document.getElementsByName("closed")[0].value; + + url = "do.pl?" + + "action=stock_in_out_form&" + + "in_out=" + escape_more(in_out) + "&" + + "row=" + escape_more(row) + "&" + + "parts_id=" + escape_more(parts_id) + "&" + + "do_qty=" + escape_more(do_qty) + "&" + + "do_unit=" + escape_more(do_unit) + "&" + + "stock=" + escape_more(stock) + "&" + + "closed=" + escape_more(closed) + "&" + + ""; + //alert(url); + window.open(url, "_new_generic", parm); + +} -- 2.20.1