10 |
10 |
|
11 |
11 |
<table class="tbl-horizontal">
|
12 |
12 |
<caption>[% LxERP.t8("Add link: select records to link with") %]</caption>
|
13 |
|
<colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup>
|
|
13 |
<colgroup> <col class="wi-normal"><col class="wi-verywide"> </colgroup>
|
14 |
14 |
<tbody>
|
15 |
15 |
<tr>
|
16 |
16 |
<th>[% LxERP.t8("Link to") %]</th>
|
... | ... | |
23 |
23 |
[ 'to', LxERP.t8("The existing record has been created from the link target to add."), ], ],
|
24 |
24 |
class='wi-verywide') %]</td>
|
25 |
25 |
</tr>
|
26 |
|
<tr>
|
|
26 |
<tr class="record_links_add_filter_cv_row">
|
27 |
27 |
<th>[% LxERP.t8("Customer/Vendor Number") %]</th>
|
28 |
28 |
<td>[% L.input_tag('vc_number', is_sales ? SELF.object.customer.customernumber : SELF.object.vendor.vendornumber, class='wi-wide') %]</td>
|
29 |
29 |
</tr>
|
30 |
|
<tr>
|
|
30 |
<tr class="record_links_add_filter_cv_row">
|
31 |
31 |
<th>[% LxERP.t8("Customer/Vendor Name") %]</th>
|
32 |
32 |
<td>[% L.input_tag('vc_name', is_sales ? SELF.object.customer.name : SELF.object.vendor.name, class='wi-wide') %]</td>
|
33 |
33 |
</tr>
|
... | ... | |
66 |
66 |
$.ajax({
|
67 |
67 |
url: url,
|
68 |
68 |
success: function(new_data) {
|
69 |
|
$("#record_list_filtered_list").html(new_data['html']);
|
70 |
|
$('#add_selected_record_links_button').prop('disabled', new_data['count'] == 0);
|
|
69 |
if (new_data['error']) {
|
|
70 |
$("#record_list_filtered_list").html(kivi.t8('Error: #1', [ new_data['error'] ]));
|
|
71 |
$('#add_selected_record_links_button').prop('disabled', true);
|
|
72 |
} else {
|
|
73 |
$("#record_list_filtered_list").html(new_data['html']);
|
|
74 |
$('#add_selected_record_links_button').prop('disabled', new_data['count'] == 0);
|
|
75 |
}
|
71 |
76 |
}
|
72 |
77 |
});
|
73 |
78 |
}
|
... | ... | |
87 |
92 |
var type = $('#record_links_add_filter_link_type').val();
|
88 |
93 |
var title = type == 'requirement_spec' ? kivi.t8('Title')
|
89 |
94 |
: type == 'letter' ? kivi.t8('Subject')
|
|
95 |
: type == 'email_journal' ? kivi.t8('Subject')
|
90 |
96 |
: kivi.t8('Transaction description');
|
91 |
97 |
|
92 |
|
if (type == 'letter') {
|
|
98 |
if (type == 'letter' || type == 'email_journal' || type == 'gl_transaction') {
|
93 |
99 |
$('#record_links_add_filter_project_row').hide();
|
94 |
100 |
|
95 |
101 |
} else {
|
96 |
102 |
$('#record_links_add_filter_project_row').show();
|
97 |
103 |
}
|
98 |
104 |
|
|
105 |
if (type == 'email_journal' || type == 'gl_transaction') {
|
|
106 |
$('.record_links_add_filter_cv_row').hide();
|
|
107 |
|
|
108 |
} else {
|
|
109 |
$('.record_links_add_filter_cv_row').show();
|
|
110 |
}
|
|
111 |
|
99 |
112 |
$('#record_links_add_filter_title').html(title);
|
100 |
113 |
}
|
101 |
114 |
--></script>
|
Design 4.0: Verknüpfte Belege: Verknüpfungen hinzufügen: Fixes
Übernahme der Anpssungen von "gerade eben".