Revision 5d125bb7
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
js/kivi.Reclamation.js | ||
---|---|---|
835 | 835 |
ns.recalc_amounts_and_taxes(); |
836 | 836 |
}; |
837 | 837 |
|
838 |
ns.set_selected_to_reason = function() {
|
|
839 |
let reason_id = $("#reason_for_selected").val();
|
|
838 |
ns.set_selected_to_value = function(value_name) {
|
|
839 |
let value = $('[name="' + value_name + '_for_selected"]').val();
|
|
840 | 840 |
let selected_rows = ns.get_selected_rows(); |
841 | 841 |
selected_rows.forEach(function(row) { |
842 |
$(row).find('[name="reclamation.reclamation_items[].reason_id"]').val( |
|
843 |
reason_id |
|
844 |
); |
|
845 |
}); |
|
846 |
|
|
847 |
}; |
|
848 |
|
|
849 |
ns.set_selected_to_reason_description_ext = function() { |
|
850 |
desc_ext_text = $("[name=reason_description_ext_for_selected]").val(); |
|
851 |
let selected_rows = ns.get_selected_rows(); |
|
852 |
selected_rows.forEach(function(row) { |
|
853 |
$(row).find('[name="reclamation.reclamation_items[].reason_description_ext"]').val( |
|
854 |
desc_ext_text |
|
855 |
); |
|
856 |
}); |
|
857 |
}; |
|
858 |
|
|
859 |
ns.set_selected_to_reason_description_int = function() { |
|
860 |
desc_int_text = $("[name=reason_description_int_for_selected]").val(); |
|
861 |
let selected_rows = ns.get_selected_rows(); |
|
862 |
selected_rows.forEach(function(row) { |
|
863 |
$(row).find('[name="reclamation.reclamation_items[].reason_description_int"]').val( |
|
864 |
desc_int_text |
|
842 |
$(row).find( |
|
843 |
'[name="reclamation.reclamation_items[].' + value_name + '"]' |
|
844 |
).val( |
|
845 |
value |
|
865 | 846 |
); |
866 | 847 |
}); |
867 | 848 |
}; |
Auch abrufbar als: Unified diff
Reclamation: multi_edit: zusammenfassen von js-Funktionen