';
$hidden .= '';
$hidden .= '';
$hidden .= '';
$hidden .= '';
if($sid == "salesorderid")
{
$hidden .= '';
}
else
{
$hidden .= '';
}
$hidden .= '';
$hidden .= '';
$hidden .= '';
return $hidden;
}
function renderSalesRelatedActivities($query,$id)
{
global $mod_strings;
global $app_strings;
$hidden = getHiddenValues($id,"salesorderid");
$hidden .= '';
echo $hidden;
$focus = new Activity();
$button = '';
if(isPermitted("Activities",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Orders&return_action=SalesOrderDetailView&return_id='.$id;
$list = GetRelatedList('SalesOrder','Activities',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedActivities($query,$id,$sid='purchaseorderid')
{
global $mod_strings;
global $app_strings;
$hidden = getHiddenValues($id,$sid);
$hidden .= '';
echo $hidden;
$focus = new Activity();
$button = '';
if(isPermitted("Activities",1,"") == 'yes')
{
$button .= ' ';
}
$returnset = '&return_module=Orders&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Orders','Activities',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedOrders($query,$id)
{
require_once('modules/Orders/SalesOrder.php');
global $mod_strings;
global $app_strings;
$hidden = getHiddenValues($id);
echo $hidden;
$focus = new SalesOrder();
$button = '';
$returnset = '&return_module=Orders&return_action=DetailView&return_id='.$id;
$list = GetRelatedList('Orders','Orders',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedAttachments($query,$id,$sid='purchaseorderid')
{
$hidden = getHiddenValues($id,$sid);
echo $hidden;
getAttachmentsAndNotes('Orders',$query,$id,$sid);
echo '';
}
function renderRelatedInvoices($query,$id)
{
global $mod_strings;
global $app_strings;
require_once('modules/Invoice/Invoice.php');
$hidden = getHiddenValues($id); echo $hidden;
$focus = new Invoice();
$button = '';
$returnset = '&return_module=Orders&return_action=SalesOrderDetailView&return_id='.$id;
$list = GetRelatedList('Orders','Invoice',$focus,$query,$button,$returnset);
echo '';
}
function renderRelatedHistory($query,$id)
{
getHistory('Orders',$query,$id);
}
echo get_form_footer();
?>