PriceRule: Kontextinfo in Kunden
[kivitendo-erp.git] / 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