Revision 93262a51
Von Moritz Bunkus vor fast 17 Jahren hinzugefügt
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 |
|
|
12 |
url = "do.pl?" + |
|
13 |
"action=stock_in_out_form&" + |
|
14 |
"in_out=" + escape_more(in_out) + "&" + |
|
15 |
"row=" + escape_more(row) + "&" + |
|
16 |
"parts_id=" + escape_more(parts_id) + "&" + |
|
17 |
"do_qty=" + escape_more(do_qty) + "&" + |
|
18 |
"do_unit=" + escape_more(do_unit) + "&" + |
|
19 |
"stock=" + escape_more(stock) + "&" + |
|
20 |
"closed=" + escape_more(closed) + "&" + |
|
21 |
""; |
|
22 |
//alert(url); |
|
23 |
window.open(url, "_new_generic", parm); |
|
24 |
|
|
25 |
} |
Auch abrufbar als: Unified diff
Fehlendes JavaScript zu den Lieferscheinen.