Fehlendes JavaScript zu den Lieferscheinen.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 22 Jan 2008 15:44:20 +0000 (15:44 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 22 Jan 2008 15:44:20 +0000 (15:44 +0000)
js/stock_in_out.js [new file with mode: 0644]

diff --git a/js/stock_in_out.js b/js/stock_in_out.js
new file mode 100644 (file)
index 0000000..2ad4687
--- /dev/null
@@ -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);
+
+}