Auftrags-Controller: Fix: Preisquellenermittlung: js-Funktion richtig aufrufen
[kivitendo-erp.git] / js / stock_in_out.js
1 function open_stock_in_out_window(in_out, row) {
2   var width     = 980;
3   var height    = 600;
4   var parm      = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
5
6   var parts_id  = document.getElementsByName("id_" + row)[0].value;
7   var stock     = document.getElementsByName("stock_" + in_out + "_" + row)[0].value;
8   var do_qty    = document.getElementsByName("qty_" + row)[0].value;
9   var do_unit   = document.getElementsByName("unit_" + row)[0].value;
10   var closed    = document.getElementsByName("closed")[0].value;
11   var delivered = document.getElementsByName("delivered")[0].value;
12
13   url = "do.pl?" +
14     "INPUT_ENCODING=UTF-8&" +
15     "action=stock_in_out_form&" +
16     "in_out="    + encodeURIComponent(in_out)    + "&" +
17     "row="       + encodeURIComponent(row)       + "&" +
18     "parts_id="  + encodeURIComponent(parts_id)  + "&" +
19     "do_qty="    + encodeURIComponent(do_qty)    + "&" +
20     "do_unit="   + encodeURIComponent(do_unit)   + "&" +
21     "stock="     + encodeURIComponent(stock)     + "&" +
22     "closed="    + encodeURIComponent(closed)    + "&" +
23     "delivered=" + encodeURIComponent(delivered) + "&" +
24     "";
25   //alert(url);
26   window.open(url, "_new_generic", parm);
27
28 }