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:

SL/Controller/DeliveryOrder.pm
my $row = $::form->{row};
my $item_id = $::form->{item_id};
my $qty = _parse_number($::form->{qty_as_number});
my $row_ui_id = $::form->{row_ui_id};
my $next_button = $::form->{next_button} eq 'true';
my $inout = $self->type_data->properties("transfer");
......
row => $row,
item_id => $item_id,
in_out => $inout,
row_ui_id => $row_ui_id,
next_button => $next_button,
);
}
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') }
});
locale/de/all
'Save and Further Invoice for Advance Payment' => 'Speichern und weitere Anzahlungsrechnung',
'Save and Invoice' => 'Speichern und Rechnung erfassen',
'Save and Invoice for Advance Payment' => 'Speichern und Anzahlungsrechnung',
'Save and Next' => 'Speichern und weiter',
'Save and Order' => 'Speichern und Auftrag erfassen',
'Save and Purchase Delivery Order' => 'Speichern und Lieferschein (Einkauf)',
'Save and Purchase Delivery Order with item selection' => 'Speichern und Lieferschein (Einkauf) mit Artikelauswahl',
locale/en/all
'Save and Further Invoice for Advance Payment' => '',
'Save and Invoice' => '',
'Save and Invoice for Advance Payment' => '',
'Save and Next' => '',
'Save and Order' => '',
'Save and Purchase Delivery Order' => '',
'Save and Purchase Delivery Order with item selection' => '',
templates/design40_webpages/delivery_order/stock_dialog.html
[% L.hidden_tag("do_unit", do_unit) %]
[% L.hidden_tag("row", row, class="data-row") %]
[% L.hidden_tag("item_id", item_id) %]
[% L.hidden_tag("row_ui_id", row_ui_id) %]
[%- IF delivered %]
[% PROCESS "delivery_order/stock_dialog/_stock_delivered_dialog.html" %]
......
<hr size="3" noshade>
<p>[% L.button_tag('kivi.DeliveryOrder.save_updated_stock(true)', LxERP.t8('Save')) %]</p>
<p>
[% L.button_tag('kivi.DeliveryOrder.save_updated_stock(true)', LxERP.t8('Save and Close')) %]
[%- IF next_button %]
[% L.button_tag("kivi.DeliveryOrder.next_stock_in_out_dialog($row_ui_id)", LxERP.t8('Save and Next')) %]
[%- END %]
</p>
[%- END %]
</form>

Auch abrufbar als: Unified diff