Revision 685108d7
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
js/kivi.CustomerVendor.js | ||
---|---|---|
215 | 215 |
|
216 | 216 |
return true; |
217 | 217 |
}; |
218 |
|
|
219 |
this.inline_report = function(target, source, data){ |
|
220 |
$.ajax({ |
|
221 |
url: source, |
|
222 |
success: function (rsp) { |
|
223 |
$(target).html(rsp); |
|
224 |
$(target).find('.paginate').find('a').click(function(event){ ns.redirect_event(event, target) }); |
|
225 |
$(target).find('a.report-generator-header-link').click(function(event){ ns.redirect_event(event, target) }); |
|
226 |
}, |
|
227 |
data: data, |
|
228 |
}); |
|
229 |
}; |
|
230 |
this.redirect_event = function(event, target){ |
|
231 |
event.preventDefault(); |
|
232 |
ns.inline_report(target, event.target + '', {}); |
|
233 |
}; |
|
218 | 234 |
}); |
219 | 235 |
|
220 | 236 |
function local_reinit_widgets() { |
locale/de/all | ||
---|---|---|
1862 | 1862 |
'Price Factor' => 'Preisfaktor', |
1863 | 1863 |
'Price Factors' => 'Preisfaktoren', |
1864 | 1864 |
'Price Rule' => 'Preisregel', |
1865 |
'Price Rules' => 'Preisregeln', |
|
1865 | 1866 |
'Price Source' => 'Preisquelle', |
1866 | 1867 |
'Price Sources to be disabled in this client' => 'Preisquellen die in diesem Mandanten deaktiviert werden sollen', |
1867 | 1868 |
'Price factor (database ID)' => 'Preisfaktor (Datenbank-ID)', |
templates/webpages/customer_vendor/form.html | ||
---|---|---|
29 | 29 |
[% IF ( cv_cvars.size ) %] |
30 | 30 |
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li> |
31 | 31 |
[% END %] |
32 |
[% IF SELF.cv.id %] |
|
33 |
<li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li> |
|
34 |
[% END %] |
|
32 | 35 |
</ul> |
33 | 36 |
|
34 | 37 |
[% PROCESS "customer_vendor/tabs/billing.html" %] |
... | ... | |
42 | 45 |
[% IF ( cv_cvars.size ) %] |
43 | 46 |
[% PROCESS "customer_vendor/tabs/custom_variables.html" %] |
44 | 47 |
[% END %] |
48 |
[% IF SELF.cv.id %] |
|
49 |
[% PROCESS "customer_vendor/tabs/price_rules.html" %] |
|
50 |
[% END %] |
|
45 | 51 |
</div> |
46 | 52 |
|
47 | 53 |
<br> |
templates/webpages/customer_vendor/tabs/price_rules.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE LxERP %] |
|
3 |
[%- USE L %] |
|
4 |
<div id="price_rules"> |
|
5 |
<div id='price_rules_customer_report'></div> |
|
6 |
<div id='price_rules_vendor_report'></div> |
|
7 |
|
|
8 |
<script type='text/javascript'> |
|
9 |
$(function() { |
|
10 |
window.setTimeout(function(){ |
|
11 |
[%- IF SELF.is_customer %] |
|
12 |
kivi.CustomerVendor.inline_report('#price_rules_customer_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].customer': [% SELF.cv.id %], type: 'customer', inline: 1 }); |
|
13 |
[%- END %] |
|
14 |
[%- IF SELF.is_vendor %] |
|
15 |
kivi.CustomerVendor.inline_report('#price_rules_vendor_report', 'controller.pl', { action: 'PriceRule/list', 'filter.item_type_matches[].vendor': [% SELF.cv.id %], type: 'vendor', inline: 1 }); |
|
16 |
[%- END %] |
|
17 |
}, 200); |
|
18 |
}) |
|
19 |
</script> |
|
20 |
</div> |
|
21 |
|
Auch abrufbar als: Unified diff
PriceRule: Kontextinfo in Kunden