Revision 44fff8c6
Von Niklas Schmidt vor 3 Monaten hinzugefügt
js/kivi.DeliveryOrder.js | ||
---|---|---|
});
|
||
};
|
||
|
||
ns.stock_in_out_dialog_row_by_id = function(id) {
|
||
var row = $("#row_table_id").find("tbody.row_entry.listrow").eq(id).find("tr").first().find("td").first();
|
||
return row;
|
||
};
|
||
|
||
ns.next_stock_in_out_dialog = function(id) {
|
||
ns.save_updated_stock(false);
|
||
|
||
var row = ns.stock_in_out_dialog_row_by_id(id);
|
||
var in_out = $("#stock_in_out_dialog").find("[name$=in_out]").val();
|
||
|
||
if (row["length"] != 0)
|
||
ns.open_stock_in_out_dialog(row, in_out);
|
||
};
|
||
|
||
ns.open_stock_in_out_dialog = function(clicked, in_out) {
|
||
var $row = $(clicked).parents("tbody").first();
|
||
var id = $row.find('[name="orderitem_ids[+]"]').val();
|
||
$row.uniqueId();
|
||
|
||
var pos = $(clicked).parents("tr").first().children().find('[name="position"]').first().text();
|
||
|
||
var next_row = ns.stock_in_out_dialog_row_by_id(pos);
|
||
var next_button = (next_row["length"] != 0);
|
||
|
||
kivi.popup_dialog({
|
||
id: "stock_in_out_dialog",
|
||
url: "controller.pl?action=DeliveryOrder/stock_in_out_dialog",
|
||
... | ... | |
stock: $row.find("[name$=stock_info]").val(),
|
||
item_id: id,
|
||
row: $row.attr("id"),
|
||
row_ui_id: pos,
|
||
next_button: next_button,
|
||
},
|
||
dialog: { title: kivi.t8('Transfer stock') }
|
||
});
|
Auch abrufbar als: Unified diff
S:C:DeliveryOrder: Stock in out dialog: Button Speichern und Weiter eingefügt