<div id='sales_price_information_sales_order'></div>
<div id='sales_price_information_sales_quotation'></div>
<div id='sales_price_information_sales_order'></div>
<div id='sales_price_information_sales_quotation'></div>
<script type='text/javascript'>
function get_report(target, source, data){
<script type='text/javascript'>
function get_report(target, source, data){
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' });
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' });