Revision 685108d7
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
js/kivi.CustomerVendor.js | ||
---|---|---|
|
||
return true;
|
||
};
|
||
|
||
this.inline_report = function(target, source, data){
|
||
$.ajax({
|
||
url: source,
|
||
success: function (rsp) {
|
||
$(target).html(rsp);
|
||
$(target).find('.paginate').find('a').click(function(event){ ns.redirect_event(event, target) });
|
||
$(target).find('a.report-generator-header-link').click(function(event){ ns.redirect_event(event, target) });
|
||
},
|
||
data: data,
|
||
});
|
||
};
|
||
this.redirect_event = function(event, target){
|
||
event.preventDefault();
|
||
ns.inline_report(target, event.target + '', {});
|
||
};
|
||
});
|
||
|
||
function local_reinit_widgets() {
|
locale/de/all | ||
---|---|---|
'Price Factor' => 'Preisfaktor',
|
||
'Price Factors' => 'Preisfaktoren',
|
||
'Price Rule' => 'Preisregel',
|
||
'Price Rules' => 'Preisregeln',
|
||
'Price Source' => 'Preisquelle',
|
||
'Price Sources to be disabled in this client' => 'Preisquellen die in diesem Mandanten deaktiviert werden sollen',
|
||
'Price factor (database ID)' => 'Preisfaktor (Datenbank-ID)',
|
templates/webpages/customer_vendor/form.html | ||
---|---|---|
[% IF ( cv_cvars.size ) %]
|
||
<li><a href="#custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
|
||
[% END %]
|
||
[% IF SELF.cv.id %]
|
||
<li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li>
|
||
[% END %]
|
||
</ul>
|
||
|
||
[% PROCESS "customer_vendor/tabs/billing.html" %]
|
||
... | ... | |
[% IF ( cv_cvars.size ) %]
|
||
[% PROCESS "customer_vendor/tabs/custom_variables.html" %]
|
||
[% END %]
|
||
[% IF SELF.cv.id %]
|
||
[% PROCESS "customer_vendor/tabs/price_rules.html" %]
|
||
[% END %]
|
||
</div>
|
||
|
||
<br>
|
templates/webpages/customer_vendor/tabs/price_rules.html | ||
---|---|---|
[%- USE T8 %]
|
||
[%- USE LxERP %]
|
||
[%- USE L %]
|
||
<div id="price_rules">
|
||
<div id='price_rules_customer_report'></div>
|
||
<div id='price_rules_vendor_report'></div>
|
||
|
||
<script type='text/javascript'>
|
||
$(function() {
|
||
window.setTimeout(function(){
|
||
[%- IF SELF.is_customer %]
|
||
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 });
|
||
[%- END %]
|
||
[%- IF SELF.is_vendor %]
|
||
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 });
|
||
[%- END %]
|
||
}, 200);
|
||
})
|
||
</script>
|
||
</div>
|
||
|
Auch abrufbar als: Unified diff
PriceRule: Kontextinfo in Kunden