1 <div id='sales_price_information_sales_order'></div>
2 <div id='sales_price_information_sales_quotation'></div>
4 <script type='text/javascript'>
5 function get_report(target, source, data){
8 // beforeSend: function () { $(target).html('<img src="image/spinner.gif">') },
9 success: function (rsp) {
11 $(target).find('.paginate').find('a').click(function(event){ redirect_event(event, target) });
12 $(target).find('a.report-generator-header-link').click(function(event){ redirect_event(event, target) });
18 function redirect_event(event, target){
19 event.preventDefault();
20 get_report(target, event.target + '', {});
23 $(document).ready(function(){
24 get_report('#sales_price_information_sales_order', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_order' });
25 get_report('#sales_price_information_sales_quotation', 'controller.pl', { action: 'SellPriceInformation/list', 'filter.part.id': [% id %], 'filter.order.type': 'sales_quotation' });