Revision e5fb3201
Von Hans Peter Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/customer_vendor/form.html | ||
---|---|---|
25 | 25 |
<li><a href="#contacts">[% 'Contacts' | $T8 %]</a></li> |
26 | 26 |
[% IF show_deliveries %] |
27 | 27 |
<li><a href="#deliveries">[% 'Supplies' | $T8 %]</a></li> |
28 |
[%- IF INSTANCE_CONF.get_doc_storage %]
|
|
29 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li> |
|
30 |
[%- END %]
|
|
28 |
[% IF INSTANCE_CONF.get_doc_storage %]
|
|
29 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=[% FORM.db == 'vendor' ? 'vendor' : 'customer' %]&object_id=[% SELF.cv.id %]">[% 'Attachments' | $T8 %]</a></li>
|
|
30 |
[% END %]
|
|
31 | 31 |
[% END %] |
32 | 32 |
<li><a href="#vcnotes">[% 'Notes' | $T8 %]</a></li> |
33 | 33 |
|
... | ... | |
77 | 77 |
</div> |
78 | 78 |
</form> |
79 | 79 |
|
80 |
<script type="text/javascript"> |
|
81 |
<!-- |
|
80 |
<script type="text/javascript"><!-- |
|
82 | 81 |
function submitInputButton(action) |
83 | 82 |
{ |
84 | 83 |
var $hidden = $("<input type='hidden' name='action' value='CustomerVendor/" + action + "'>"), |
... | ... | |
95 | 94 |
} |
96 | 95 |
return true; |
97 | 96 |
} |
98 |
--> |
|
99 |
</script> |
|
97 |
--></script> |
templates/webpages/customer_vendor/get_delivery.html | ||
---|---|---|
32 | 32 |
[%- ELSE -%] |
33 | 33 |
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td> |
34 | 34 |
[%- END -%] |
35 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td>
|
|
36 |
<td>[% HTML.escape(row.description) || ' ' %]</td>
|
|
37 |
<td>[% HTML.escape(row.qty) || ' ' %]</td>
|
|
38 |
<td>[% HTML.escape(row.unit) || ' ' %]</td>
|
|
39 |
<td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td>
|
|
40 |
</tr>
|
|
41 |
[% END %]
|
|
42 |
|
|
43 |
</table>
|
|
35 |
<td>[% HTML.escape(row.transdate) || ' ' %]</td> |
|
36 |
<td>[% HTML.escape(row.description) || ' ' %]</td> |
|
37 |
<td>[% HTML.escape(row.qty) || ' ' %]</td> |
|
38 |
<td>[% HTML.escape(row.unit) || ' ' %]</td> |
|
39 |
<td>[% LxERP.format_amount(row.sellprice, 2) || ' ' %]</td> |
|
40 |
</tr> |
|
41 |
[% END %] |
|
42 |
|
|
43 |
</table> |
|
44 | 44 |
|
45 |
[% IF DELIVERY.size == 15 %]
|
|
46 |
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p>
|
|
47 |
[% END %]
|
|
45 |
[% IF DELIVERY.size == 15 %] |
|
46 |
<p>[% 'This list is capped at 15 items to keep it fast. If you need a full list, please use reports.' | $T8 %]</p> |
|
47 |
[% END %] |
|
48 | 48 |
|
49 | 49 |
</td> |
50 | 50 |
</tr> |
templates/webpages/customer_vendor/tabs/contacts.html | ||
---|---|---|
229 | 229 |
|
230 | 230 |
[% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), class = 'submit') %] |
231 | 231 |
[% IF ( !SELF.contact.cp_id ) %] |
232 |
<script type="text/javascript">
|
|
233 |
$('#action_delete_contact').hide();
|
|
234 |
</script>
|
|
232 |
<script type="text/javascript"> |
|
233 |
$('#action_delete_contact').hide(); |
|
234 |
</script> |
|
235 | 235 |
[% END %] |
236 | 236 |
</div> |
templates/webpages/customer_vendor/tabs/price_rules.html | ||
---|---|---|
9 | 9 |
<script type='text/javascript'> |
10 | 10 |
$(function() { |
11 | 11 |
window.setTimeout(function(){ |
12 |
[%- IF SELF.is_customer %] |
|
13 |
kivi.CustomerVendor.inline_report('#price_rules_customer_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 }); |
|
14 |
[%- END %] |
|
15 |
[%- IF SELF.is_vendor %] |
|
16 |
kivi.CustomerVendor.inline_report('#price_rules_vendor_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 }); |
|
17 |
[%- END %] |
|
12 |
[% IF SELF.is_customer %] |
|
13 |
kivi.CustomerVendor.inline_report( |
|
14 |
'#price_rules_customer_report', |
|
15 |
'controller.pl', |
|
16 |
{ action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], 'filter.type': 'customer', inline: 1 } |
|
17 |
); |
|
18 |
[% END %] |
|
19 |
[% IF SELF.is_vendor %] |
|
20 |
kivi.CustomerVendor.inline_report( |
|
21 |
'#price_rules_vendor_report', |
|
22 |
'controller.pl', |
|
23 |
{ action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], 'filter.type': 'vendor', inline: 1 } |
|
24 |
); |
|
25 |
[% END %] |
|
18 | 26 |
}, 200); |
19 | 27 |
}) |
20 | 28 |
</script> |
templates/webpages/customer_vendor/test_page.html | ||
---|---|---|
34 | 34 |
---[% P.customer_vendor.picker('vendor5_id', '', type='vendor') %]--- |
35 | 35 |
|
36 | 36 |
|
37 |
<script type='text/javascript'>
|
|
37 |
<script type="text/javascript">
|
|
38 | 38 |
$('#customer_id2').change(function() { $('#change1').html($('#customer_id2').val()) }) |
39 | 39 |
$('#customer_id2').on('set_item:CustomerVendorPicker', function(e,o) { $('#change2').html(o.greeting) }) |
40 | 40 |
|
Auch abrufbar als: Unified diff
Design 4.0: diverse Kosmetik in templates/webpages/customer_vendor/..