Revision 44fff8c6
Von Niklas Schmidt vor 4 Tagen hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
98 | 98 |
}); |
99 | 99 |
}; |
100 | 100 |
|
101 |
ns.stock_in_out_dialog_row_by_id = function(id) { |
|
102 |
var row = $("#row_table_id").find("tbody.row_entry.listrow").eq(id).find("tr").first().find("td").first(); |
|
103 |
return row; |
|
104 |
}; |
|
105 |
|
|
106 |
ns.next_stock_in_out_dialog = function(id) { |
|
107 |
ns.save_updated_stock(false); |
|
108 |
|
|
109 |
var row = ns.stock_in_out_dialog_row_by_id(id); |
|
110 |
var in_out = $("#stock_in_out_dialog").find("[name$=in_out]").val(); |
|
111 |
|
|
112 |
if (row["length"] != 0) |
|
113 |
ns.open_stock_in_out_dialog(row, in_out); |
|
114 |
}; |
|
115 |
|
|
101 | 116 |
ns.open_stock_in_out_dialog = function(clicked, in_out) { |
102 | 117 |
var $row = $(clicked).parents("tbody").first(); |
103 | 118 |
var id = $row.find('[name="orderitem_ids[+]"]').val(); |
104 | 119 |
$row.uniqueId(); |
105 | 120 |
|
121 |
var pos = $(clicked).parents("tr").first().children().find('[name="position"]').first().text(); |
|
122 |
|
|
123 |
var next_row = ns.stock_in_out_dialog_row_by_id(pos); |
|
124 |
var next_button = (next_row["length"] != 0); |
|
125 |
|
|
106 | 126 |
kivi.popup_dialog({ |
107 | 127 |
id: "stock_in_out_dialog", |
108 | 128 |
url: "controller.pl?action=DeliveryOrder/stock_in_out_dialog", |
... | ... | |
115 | 135 |
stock: $row.find("[name$=stock_info]").val(), |
116 | 136 |
item_id: id, |
117 | 137 |
row: $row.attr("id"), |
138 |
row_ui_id: pos, |
|
139 |
next_button: next_button, |
|
118 | 140 |
}, |
119 | 141 |
dialog: { title: kivi.t8('Transfer stock') } |
120 | 142 |
}); |
Auch abrufbar als: Unified diff
S:C:DeliveryOrder: Stock in out dialog: Button Speichern und Weiter eingefügt