Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 44fff8c6

Von Niklas Schmidt vor 3 Monaten hinzugefügt

  • ID 44fff8c68ba5fb00f73080ec902b331f31bf7022
  • Vorgänger f3017a41
  • Nachfolger e148b1c2

S:C:DeliveryOrder: Stock in out dialog: Button Speichern und Weiter eingefügt

Unterschiede anzeigen:

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