Revision 78fdc155
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
templates/webpages/ic/sales_price_information.html | ||
---|---|---|
get_report(target, event.target + '', {});
|
||
}
|
||
|
||
$(document).ready(function(){
|
||
get_report('#sales_price_information_sales_order', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_order' });
|
||
get_report('#sales_price_information_sales_quotation', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_quotation' });
|
||
$('.tabwidget').on('tabsbeforeactivate', function(event, ui){
|
||
if (ui.newPanel.attr('id') == 'sales_price_information') {
|
||
get_report('#sales_price_information_sales_order', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_order' });
|
||
get_report('#sales_price_information_sales_quotation', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_quotation' });
|
||
}
|
||
return 1;
|
||
});
|
||
|
||
|
Auch abrufbar als: Unified diff
Preisinformationen erst laden, wenn der Tab aktiv wird.
Reduziert den Request load weiter