From: Moritz Bunkus Date: Tue, 22 Jan 2008 15:44:20 +0000 (+0000) Subject: Fehlendes JavaScript zu den Lieferscheinen. X-Git-Tag: release-2.6.0beta1~316 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=93262a51ee23c2c011e5556ab483f8f0f31c6da0;p=kivitendo-erp.git Fehlendes JavaScript zu den Lieferscheinen. --- 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); + +}