Revision 2c92b5ac
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
408 | 408 |
}; |
409 | 409 |
|
410 | 410 |
ns.assign_order_part_id_to_all = function() { |
411 |
var order_part_id = $('#quoations_and_orders_order_id').val(); |
|
412 |
$('#quotations_and_orders_form SELECT[name="sections[].order_part_id"]').each(function(idx, elt) { |
|
411 |
var order_part_id = $('#quotations_and_orders_order_id').val(); |
|
412 |
var order_part_name = $('#quotations_and_orders_order_id_name').val(); |
|
413 |
|
|
414 |
$('#quotations_and_orders_form INPUT[name="sections[].order_part_id"]').each(function(idx, elt) { |
|
413 | 415 |
$(elt).val(order_part_id); |
414 | 416 |
}); |
417 |
|
|
418 |
$('#quotations_and_orders_form [id^=quotations_and_orders_sections_order_pard_id_]').filter(function() { |
|
419 |
return $(this).attr('id') && $(this).attr('id').match("^quotations_and_orders_sections_order_pard_id_[0-9]+_name$"); |
|
420 |
}).each(function(idx, elt) { |
|
421 |
$(elt).val(order_part_name); |
|
422 |
}); |
|
415 | 423 |
}; |
416 | 424 |
|
417 | 425 |
// ------------------------------------------------------------------------- |
templates/webpages/requirement_spec_order/_assignment_form.html | ||
---|---|---|
18 | 18 |
<tr> |
19 | 19 |
<td>[% LxERP.t8("Assign the following article to all sections") %]:</td> |
20 | 20 |
<td> |
21 |
[% P.part_picker('quotations_and_orders_dummy', INSTANCE_CONF.get_requirement_spec_section_order_part_id, convertible_unit=SELF.h_unit_name, id='quoations_and_orders_order_id', style=style) %] |
|
21 |
[% P.part_picker('quotations_and_orders_dummy', INSTANCE_CONF.get_requirement_spec_section_order_part_id, convertible_unit=SELF.h_unit_name, id='quotations_and_orders_order_id', style=style) %]
|
|
22 | 22 |
[% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %] |
23 | 23 |
</td> |
24 | 24 |
</tr> |
... | ... | |
41 | 41 |
<td>[% HTML.escape(section.fb_number) %]</td> |
42 | 42 |
<td>[% HTML.escape(section.title) %]</td> |
43 | 43 |
<td>[% HTML.escape(P.truncate(section.description)) %]</td> |
44 |
<td>[% P.part_picker('sections[].order_part_id', section.order_part_id, convertible_unit=SELF.h_unit_name, id='quoations_and_orders_sections_order_pard_id_' _ loop.count, style=style) %]</td> |
|
44 |
<td>[% P.part_picker('sections[].order_part_id', section.order_part_id, convertible_unit=SELF.h_unit_name, id='quotations_and_orders_sections_order_pard_id_' _ loop.count, style=style) %]</td>
|
|
45 | 45 |
</tr> |
46 | 46 |
[% END %] |
47 | 47 |
</tbody> |
Auch abrufbar als: Unified diff
Pflichtenhefte Angebote/Aufträge: "Artikel allen Abschnitten zuweisen" fixen