kivitendo/js/calculate_qty.js @ 606032ad
54e4131e | Moritz Bunkus | function calculate_qty_selection_window(input_name, alu, formel, row) {
|
||
var parm = centerParms(600,500) + ",width=600,height=500,status=yes,scrollbars=yes";
|
||||
var name = document.getElementsByName(input_name)[0].value;
|
||||
if (document.getElementsByName(alu)[0].value == "1") {
|
||||
var action = "calculate_alu";
|
||||
var qty = document.getElementsByName("qty_" + row)[0].value;
|
||||
var description = document.getElementsByName("description_" + row)[0].value;
|
||||
} else var action = "calculate_qty";
|
||||
url = "common.pl?" +
|
||||
5d557254 | Moritz Bunkus | "INPUT_ENCODING=UTF-8&" +
|
||
54e4131e | Moritz Bunkus | "action=" + action + "&" +
|
||
6b063f3c | Moritz Bunkus | "name=" + encodeURIComponent(name) + "&" +
|
||
"input_name=" + encodeURIComponent(input_name) + "&" +
|
||||
"description=" + encodeURIComponent(description) + "&" +
|
||||
"qty=" + encodeURIComponent(qty) + "&" +
|
||||
"row=" + encodeURIComponent(row) + "&" +
|
||||
"formel=" + encodeURIComponent(document.getElementsByName(formel)[0].value)
|
||||
54e4131e | Moritz Bunkus | //alert(url);
|
||
window.open(url, "_new_generic", parm);
|
||||
}
|