Revision baa54321
Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt
js/kivi.CustomerVendorTurnover.js | ||
---|---|---|
42 | 42 |
$('#turnovers').load(url); |
43 | 43 |
}; |
44 | 44 |
|
45 |
ns.cv_tabs_init = function () { |
|
46 |
$("#customer_vendor_tabs").on('tabsbeforeactivate', function(event, ui){ |
|
47 |
if (ui.newPanel.attr('id') == 'quotations') { |
|
48 |
ns.get_sales_quotations(); |
|
49 |
} |
|
50 |
return 1; |
|
51 |
}); |
|
52 |
|
|
53 |
$("#customer_vendor_tabs").on('tabscreate', function(event, ui){ |
|
54 |
if (ui.panel.attr('id') == 'quotations') { |
|
55 |
ns.get_sales_quotations(); |
|
56 |
} |
|
57 |
return 1; |
|
58 |
}); |
|
59 |
}; |
|
60 |
|
|
61 |
$(function(){ |
|
62 |
ns.cv_tabs_init(); |
|
63 |
}); |
|
45 | 64 |
}); |
templates/webpages/customer_vendor/form.html | ||
---|---|---|
53 | 53 |
<li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id _ '&db=' _ FORM.db %]">[% LxERP.t8('Records') %] |
54 | 54 |
[%- IF SELF.open_items > 0 %] <span style="color:red;"> $</span>[% END %] [%- IF SELF.open_orders > 0 %] <span style="color:red;"> !</span>[% END %]</a> |
55 | 55 |
</li> |
56 |
<li><a href="#turnover_stat">[% 'Turnoverstatistic' | $T8 %]</a></li> |
|
56 | 57 |
[% END %] |
57 | 58 |
[% IF ( FORM.db == 'vendor' && AUTH.assert('show_extra_record_tab_vendor',1) ) %] |
58 | 59 |
<li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id _ '&db=' _ FORM.db %]">[% LxERP.t8('Records') %] |
59 | 60 |
[%- IF SELF.open_items > 0 %] <span style="color:red;"> $</span>[% END %] [%- IF SELF.open_orders > 0 %] <span style="color:red;"> !</span>[% END %]</a> |
60 | 61 |
</li> |
62 |
<li><a href="#turnover_stat">[% 'Turnoverstatistic' | $T8 %]</a></li> |
|
61 | 63 |
[% END %] |
62 | 64 |
[% END %] |
63 | 65 |
|
... | ... | |
84 | 86 |
[% IF ( SELF.cv.id && SELF.cv.pricegroup_id && AUTH.assert('part_service_assembly_details', 1) ) %] |
85 | 87 |
[% PROCESS "customer_vendor/tabs/price_list.html" %] |
86 | 88 |
[% END %] |
89 |
[% IF SELF.cv.id && ( (FORM.db == 'customer' && AUTH.assert('show_extra_record_tab_customer', 1)) || (FORM.db == 'vendor' && AUTH.assert('show_extra_record_tab_vendor', 1)) ) %] |
|
90 |
<div id="turnover_stat">[% PROCESS "customer_vendor_turnover/turnover_statistic.html" %]</div> |
|
91 |
[% END %] |
|
87 | 92 |
</div> |
88 | 93 |
</form> |
89 | 94 |
|
templates/webpages/customer_vendor_turnover/_statistic_tabs.html | ||
---|---|---|
9 | 9 |
</script> |
10 | 10 |
<div class="tabwidget" id="statistic_tabs"> |
11 | 11 |
<ul> |
12 |
<li><a href="#turnover_stat">[% 'Turnoverstatistic' | $T8 %]</a></li> |
|
13 | 12 |
[% IF FORM.db == "customer" %]<li><a href="#dun_stat">[% 'Dunningstatistic' | $T8 %]</a></li>[% END %] |
14 |
<li><a href="#quotations" onclick="kivi.CustomerVendorTurnover.get_sales_quotations();">[% IF FORM.db == "customer" %][% 'Sales Quotations' | $T8 %][% ELSE %][% 'Request Quotations' | $T8 %][% END %]</a></li>
|
|
13 |
<li><a href="#quotations">[% IF FORM.db == "customer" %][% 'Sales Quotations' | $T8 %][% ELSE %][% 'Request Quotations' | $T8 %][% END %]</a></li> |
|
15 | 14 |
<li><a href="#orders" onclick="kivi.CustomerVendorTurnover.get_orders();">[% 'Orders' | $T8 %]</a></li> |
16 | 15 |
<li><a href="#invoices" onclick="kivi.CustomerVendorTurnover.get_invoices();">[% 'Invoices' | $T8 %]</a></li> |
17 | 16 |
<li><a href="#mails" onclick="kivi.CustomerVendorTurnover.get_mails();">[% 'Mails' | $T8 %]</a></li> |
18 | 17 |
<li><a href="#letters" onclick="kivi.CustomerVendorTurnover.get_letters();">[% 'Letters' | $T8 %]</a></li> |
19 | 18 |
</ul> |
20 |
<div id="turnover_stat">[% PROCESS "customer_vendor_turnover/turnover_statistic.html" %]</div> |
|
21 | 19 |
<div id="dun_stat">[% PROCESS "customer_vendor_turnover/dun_statistic.html" %]</div> |
22 | 20 |
<div id="quotations"></div> |
23 | 21 |
<div id="orders"></div> |
Auch abrufbar als: Unified diff
Umsatzstatistik: In eigenem Top-Level-Tab